Mercurial > octave
diff libinterp/corefcn/txt-eng-ft.cc @ 20974:1edf15793cac
maint: Use is_empty rather than "numel () == 0" for clarity.
* daspk.cc, dasrt.cc, dassl.cc, gl-render.cc, lsode.cc, tril.cc,
txt-eng-ft.cc, ov-fcn-inline.cc, ov-java.cc, ov-range.cc, ov-struct.cc,
Array.cc, Range.cc, chNDArray.cc, dNDArray.cc, fNDArray.cc, DASPK.cc, DASRT.cc,
DASSL.cc, LSODE.cc, eigs-base.cc:
Use is_empty rather than "numel () == 0" for clarity.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 23 Dec 2015 21:46:39 -0800 |
parents | 850e3d2533d4 |
children | dfcb9d74b253 |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.cc Wed Dec 23 20:45:02 2015 -0800 +++ b/libinterp/corefcn/txt-eng-ft.cc Wed Dec 23 21:46:39 2015 -0800 @@ -1031,11 +1031,8 @@ pixels_ = render (elt, box, rot_mode); delete elt; - if (pixels_.numel () == 0) - { - // nothing to render - return; - } + if (pixels_.is_empty ()) + return; // nothing to render switch (halign) {