Mercurial > octave
diff liboctave/util/url-transfer.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 | e43d83253e28 |
line wrap: on
line diff
--- a/liboctave/util/url-transfer.cc Mon Jun 13 10:55:52 2016 -0400 +++ b/liboctave/util/url-transfer.cc Mon Jun 13 09:18:03 2016 -0700 @@ -133,7 +133,7 @@ string_vector file_list; std::string realdir - = (base.length () == 0 + = (base.empty () ? directory : base + octave::sys::file_ops::dir_sep_str () + directory); mkdir (directory);