Mercurial > octave
diff libinterp/octave-value/ov-classdef.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 | b571fc85953f |
children | 112b20240c87 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc Mon Jun 13 10:55:52 2016 -0400 +++ b/libinterp/octave-value/ov-classdef.cc Mon Jun 13 09:18:03 2016 -0700 @@ -912,7 +912,7 @@ retlist = meth.execute (args, 1, true, "subsasgn"); - if (retlist.length () == 0) + if (retlist.empty ()) error ("overloaded method `subsasgn' did not return any value"); retval = retlist(0);