Mercurial > octave
diff libinterp/corefcn/dasrt.cc @ 21885:0806871e3e1e
maint: Prefer is_empty() rather than "length () == 0".
* QtHandlesUtils.cc, octave-qt-link.cc, dasrt.cc, data.cc, debug.cc,
error.cc, input.cc, jit-typeinfo.cc, ls-mat5.cc, lsode.cc, oct-stream.cc,
variables.cc, ov-base-diag.cc, ov-bool-sparse.cc, ov-classdef.cc,
ov-cx-sparse.cc, ov-fcn-handle.cc, ov-flt-re-mat.cc, ov-intx.h, ov-perm.cc,
ov-re-mat.cc, ov-re-sparse.cc, pt.cc, file-ops.cc, url-transfer.cc:
Prefer is_empty() rather than "length () == 0".
author | Rik <rik@octave.org> |
---|---|
date | Mon, 13 Jun 2016 09:18:03 -0700 |
parents | f4d7d0eb5b0c |
children | 112b20240c87 |
line wrap: on
line diff
--- a/libinterp/corefcn/dasrt.cc Mon Jun 13 10:55:52 2016 -0400 +++ b/libinterp/corefcn/dasrt.cc Mon Jun 13 09:18:03 2016 -0700 @@ -84,7 +84,7 @@ err_user_supplied_eval (e, "dasrt"); } - if (tmp.length () == 0 || ! tmp(0).is_defined ()) + if (tmp.empty () || ! tmp(0).is_defined ()) err_user_supplied_eval ("dasrt"); if (! warned_fcn_imaginary && tmp(0).is_complex_type ()) @@ -125,7 +125,7 @@ err_user_supplied_eval (e, "dasrt"); } - if (tmp.length () == 0 || ! tmp(0).is_defined ()) + if (tmp.empty () || ! tmp(0).is_defined ()) err_user_supplied_eval ("dasrt"); if (! warned_cf_imaginary && tmp(0).is_complex_type ())