Mercurial > octave
diff liboctave/system/oct-env.cc @ 23829:01899bdd2a3a
Eliminate unnecessary std::string ("...") constructor calls when "..." suffices.
* Backend.cc, KeyMap.cc, QtHandlesUtils.cc, error.cc, help.cc, oct-hist.cc,
pr-output.cc, urlwrite.cc, utils.cc, variables.cc, __voronoi__.cc,
ov-classdef.cc, ov-fcn-handle.cc, pt-funcall.cc, pt-pr-code.cc, pt-tm-const.cc,
DASPK.cc, DASRT.cc, DASSL.cc, LSODE.cc, oct-env.cc, kpse.cc:
Eliminate unnecessary std::string ("...") constructor calls when "..."
suffices.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 04 Aug 2017 09:37:04 -0700 |
parents | 057a894914df |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/liboctave/system/oct-env.cc Thu Aug 03 08:43:49 2017 -0700 +++ b/liboctave/system/oct-env.cc Fri Aug 04 09:37:04 2017 -0700 @@ -507,7 +507,7 @@ sys::password pw = sys::password::getpwuid ( sys::getuid ()); - user_name = (pw ? pw.name () : std::string ("unknown")); + user_name = (pw ? pw.name () : "unknown"); } return user_name; @@ -536,8 +536,8 @@ return value ? value : ""; } - // Do the work of changing to the directory NEWDIR. Handle symbolic - // link following, etc. + // Do the work of changing to the directory NEWDIR. + // Handle symbolic link following, etc. bool env::do_chdir (const std::string& newdir)