Mercurial > octave
changeset 28219:f84ee2305174 stable
omit unnecessary calls to std::string::c_str
* file-io.cc (Ffopen): Pass std::string objects to
octave::sys::fopen.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 14 Apr 2020 22:49:34 -0400 |
parents | 87554d9ac6f8 |
children | 6cccc3c82175 |
files | libinterp/corefcn/file-io.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc Tue Apr 14 11:09:42 2020 -0700 +++ b/libinterp/corefcn/file-io.cc Tue Apr 14 22:49:34 2020 -0400 @@ -447,7 +447,7 @@ else #endif { - FILE *fptr = octave::sys::fopen (fname.c_str (), mode.c_str ()); + FILE *fptr = octave::sys::fopen (fname, mode); retval = octave_stdiostream::create (fname, fptr, md, flt_fmt, encoding);