# HG changeset patch # User John W. Eaton # Date 1586918974 14400 # Node ID f84ee230517463629e61645c1e6124561d6fc31a # Parent 87554d9ac6f86a2e8774d309346cd3eb96d24ba0 omit unnecessary calls to std::string::c_str * file-io.cc (Ffopen): Pass std::string objects to octave::sys::fopen. diff -r 87554d9ac6f8 -r f84ee2305174 libinterp/corefcn/file-io.cc --- 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);