Mercurial > octave
diff liboctave/numeric/CollocWt.cc @ 21055:5e00ed38a58b
maint: Replace if/error/else paradigm with just if/error.
* __ilu__.cc, data.cc, file-io.cc, graphics.cc, graphics.in.h, ls-mat5.cc,
lu.cc, octave-link.cc, regexp.cc, schur.cc, spparms.cc, sub2ind.cc,
syscalls.cc, toplev.cc, variables.cc, xpow.cc, audiodevinfo.cc, ccolamd.cc,
ov-builtin.cc, ov-classdef.cc, ov-intx.h, ov-lazy-idx.cc, ov-mex-fcn.cc,
op-int.h, lex.ll, oct-parse.in.yy, pt-binop.cc, pt-cbinop.cc, pt-const.cc,
pt-decl.h, pt-fcn-handle.cc, pt-unop.cc, CollocWt.cc:
Replace if/error/else paradigm with just if/error.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 13 Jan 2016 11:02:22 -0800 |
parents | 25d676f9619c |
children | d48fdf3a8c0c |
line wrap: on
line diff
--- a/liboctave/numeric/CollocWt.cc Tue Jan 12 21:45:58 2016 +0100 +++ b/liboctave/numeric/CollocWt.cc Wed Jan 13 11:02:22 2016 -0800 @@ -382,10 +382,7 @@ CollocWt::set_left (double val) { if (val >= rb) - { - error ("CollocWt: left bound greater than right bound"); - return *this; - } + error ("CollocWt: left bound greater than right bound"); lb = val; initialized = 0; @@ -396,10 +393,7 @@ CollocWt::set_right (double val) { if (val <= lb) - { - error ("CollocWt: right bound less than left bound"); - return *this; - } + error ("CollocWt: right bound less than left bound"); rb = val; initialized = 0; @@ -421,10 +415,7 @@ octave_idx_type nt = n + inc_left + inc_right; if (nt < 0) - { - error ("CollocWt: total number of collocation points less than zero"); - return; - } + error ("CollocWt: total number of collocation points less than zero"); else if (nt == 0) return;