Mercurial > jwe > octave
comparison libinterp/octave-value/ov-base-scalar.cc @ 21118:3ac9f47fb04b
Invert pattern if/code/else/err_XXX to if !/err_XXX/code.
* daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, load-save.cc, lsode.cc,
quad.cc, xnorm.cc, xpow.cc, ov-base-diag.cc, ov-base-mat.cc, ov-base-scalar.cc,
ov-base.cc, ov-bool-mat.cc, ov-bool-sparse.cc, ov-cell.cc, ov-ch-mat.cc,
ov-class.cc, ov-cx-mat.cc, ov-cx-sparse.cc, ov-float.cc, ov-flt-cx-mat.cc,
ov-flt-re-mat.cc, ov-intx.h, ov-perm.cc, ov-range.cc, ov-re-mat.cc,
ov-re-sparse.cc, ov-scalar.cc, ov-struct.cc, ov.cc, pt-idx.cc, Array-util.cc,
Array.cc, Sparse.cc, lo-specfun.cc, mx-inlines.cc, oct-binmap.h:
Invert pattern if/code/else/err_XXX to if !/err_XXX/code.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Jan 2016 16:08:30 -0800 |
parents | e39e05d90788 |
children | 538b57866b90 |
comparison
equal
deleted
inserted
replaced
21117:c1df36373272 | 21118:3ac9f47fb04b |
---|---|
129 | 129 |
130 template <class ST> | 130 template <class ST> |
131 bool | 131 bool |
132 octave_base_scalar<ST>::is_true (void) const | 132 octave_base_scalar<ST>::is_true (void) const |
133 { | 133 { |
134 bool retval = false; | |
135 | |
136 if (xisnan (scalar)) | 134 if (xisnan (scalar)) |
137 err_nan_to_logical_conversion (); | 135 err_nan_to_logical_conversion (); |
138 else | 136 |
139 retval = (scalar != ST ()); | 137 return (scalar != ST ()); |
140 | |
141 return retval; | |
142 } | 138 } |
143 | 139 |
144 template <class ST> | 140 template <class ST> |
145 void | 141 void |
146 octave_base_scalar<ST>::print (std::ostream& os, bool pr_as_read_syntax) | 142 octave_base_scalar<ST>::print (std::ostream& os, bool pr_as_read_syntax) |