Mercurial > octave
diff libinterp/dldfcn/__ode15__.cc @ 22918:0b5d9978d7b1
* __ode15__.cc: Pass std::string arg by const reference.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 16 Dec 2016 13:17:58 -0500 |
parents | c1ac4ac3ebbc |
children | eb064b1b4269 |
line wrap: on
line diff
--- a/libinterp/dldfcn/__ode15__.cc Fri Dec 16 12:44:57 2016 -0500 +++ b/libinterp/dldfcn/__ode15__.cc Fri Dec 16 13:17:58 2016 -0500 @@ -236,13 +236,13 @@ bool outputfun (octave_function *output_fcn, bool haveoutputsel, const ColumnVector& output, realtype tout, realtype tend, - ColumnVector& outputsel, std::string flag); + ColumnVector& outputsel, const std::string& flag); bool event (octave_function *event_fcn, ColumnVector& te, Matrix& ye, ColumnVector& ie, - realtype tsol, const ColumnVector& y, std::string flag, + realtype tsol, const ColumnVector& y, const std::string& flag, const ColumnVector& yp, ColumnVector& oldval, ColumnVector& oldisterminal, ColumnVector& olddir, int cont, int& temp, realtype told, ColumnVector& yold); @@ -627,7 +627,7 @@ bool IDA::event (octave_function *event_fcn, ColumnVector& te, Matrix& ye, ColumnVector& ie, - realtype tsol, const ColumnVector& y, std::string flag, + realtype tsol, const ColumnVector& y, const std::string& flag, const ColumnVector& yp, ColumnVector& oldval, ColumnVector& oldisterminal, ColumnVector& olddir, int cont, int& temp, realtype told, ColumnVector& yold) @@ -796,7 +796,7 @@ IDA::outputfun (octave_function *output_fcn, bool haveoutputsel, const ColumnVector& yout, realtype tsol, realtype tend, ColumnVector& outputsel, - std::string flag) + const std::string& flag) { bool status = 0;