Mercurial > octave
diff liboctave/numeric/LSODE.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 | 336f89b6208b |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/liboctave/numeric/LSODE.cc Thu Aug 03 08:43:49 2017 -0700 +++ b/liboctave/numeric/LSODE.cc Fri Aug 04 09:37:04 2017 -0700 @@ -333,8 +333,8 @@ break; case -1: - retval = std::string ("excess work on this call (t = ") - + t_curr + "; perhaps wrong integration method)"; + retval = "excess work on this call (t = " + t_curr + + "; perhaps wrong integration method)"; break; case -2: @@ -346,20 +346,18 @@ break; case -4: - retval = std::string ("repeated error test failures (t = ") - + t_curr + "; check all inputs)"; + retval = "repeated error test failures (t = " + t_curr + + "; check all inputs)"; break; case -5: - retval = std::string ("repeated convergence failures (t = ") - + t_curr - + "; perhaps bad Jacobian supplied or wrong choice of integration method or tolerances)"; + retval = "repeated convergence failures (t = " + t_curr + + "; perhaps bad Jacobian supplied or wrong choice of integration method or tolerances)"; break; case -6: - retval = std::string ("error weight became zero during problem. (t = ") - + t_curr - + "; solution component i vanished, and atol or atol(i) == 0)"; + retval = "error weight became zero during problem. (t = " + t_curr + + "; solution component i vanished, and atol or atol(i) == 0)"; break; case -13: