Mercurial > octave
diff liboctave/util/kpse.cc @ 21017:93748bcaec17
maint: Replace emtpy 'std::string ()' calls with "".
* Backend.cc, comment-list.h, debug.cc, defaults.in.h, dynamic-ld.h, error.cc,
graphics.cc, graphics.in.h, help.cc, hook-fcn.h, load-path.cc, load-path.h,
ls-ascii-helper.cc, ls-mat-ascii.cc, ls-mat5.cc, ls-mat5.h, ls-oct-text.cc,
oct-iostrm.h, oct-lvalue.h, oct-stream.cc, oct-stream.h, oct-strstrm.h,
regexp.cc, schur.cc, sqrtm.cc, strfns.cc, symtab.cc, symtab.h, sysdep.cc,
toplev.cc, urlwrite.cc, variables.cc, variables.h, ov-builtin.h, ov-cell.cc,
ov-class.cc, ov-classdef.cc, ov-classdef.h, ov-dld-fcn.h, ov-fcn-handle.cc,
ov-fcn-inline.cc, ov-fcn-inline.h, ov-fcn.h, ov-lazy-idx.cc, ov-mex-fcn.h,
ov-struct.cc, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, ov-usr-fcn.h, ov.h,
ovl.h, octave.cc, lex.h, parse.h, pt-classdef.h, pt-exp.cc, pt-pr-code.h,
token.h, version.cc, version.in.h, oct-rand.h, dir-ops.h, file-ops.cc,
file-ops.h, file-stat.h, oct-env.cc, oct-group.cc, oct-passwd.cc,
oct-syscalls.cc, cmd-edit.cc, cmd-edit.h, cmd-hist.cc, cmd-hist.h, kpse.cc,
lo-array-gripes.h, pathsearch.cc, pathsearch.h, str-vec.h, url-transfer.h:
Replace emtpy 'std::string ()' calls with "".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Dec 2015 12:33:33 -0800 |
parents | 77f5591878bf |
children | 40de9f8f23a6 |
line wrap: on
line diff
--- a/liboctave/util/kpse.cc Wed Dec 30 11:43:29 2015 -0800 +++ b/liboctave/util/kpse.cc Wed Dec 30 12:33:33 2015 -0800 @@ -616,7 +616,7 @@ if (! READABLE (ret, st)) { /* Failed. */ - ret = std::string (); + ret = ""; } #endif /* ENAMETOOLONG */ @@ -630,7 +630,7 @@ perror (name.c_str ()); } - ret = std::string (); + ret = ""; } return ret; @@ -937,7 +937,7 @@ { string_vector ret_list = search (path, name, must_exist, false); - return ret_list.empty () ? std::string () : ret_list[0]; + return ret_list.empty () ? "" : ret_list[0]; } /* Search all elements of PATH for files named NAME. Not sure if it's @@ -1157,7 +1157,7 @@ { string_vector ret_list = find_first_of (path, names, must_exist, false); - return ret_list.empty () ? std::string () : ret_list[0]; + return ret_list.empty () ? "" : ret_list[0]; } /* Search each element of PATH for each element of NAMES and return a