2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 15:47:46 +00:00

Runtime: Remove unnecessary c_str() calls

Makes for less noisy code and also gets rid of unnecessary std::strlen
calls in the case things are passed to a std::string_view parameter.
This commit is contained in:
Lioncash
2020-02-28 05:11:20 -05:00
parent 08604d770a
commit f1256faeb7
6 changed files with 26 additions and 25 deletions

View File

@@ -654,7 +654,7 @@ public:
if (stream.x70_26_headerReadState != 0 || stream.x70_24_unclaimed)
return false;
CDvdFile file(stream.x60_fileName.c_str());
CDvdFile file(stream.x60_fileName);
if (!file)
return false;
@@ -668,11 +668,11 @@ public:
rstream.x70_24_unclaimed)
return false;
CDvdFile lfile(lstream.x60_fileName.c_str());
CDvdFile lfile(lstream.x60_fileName);
if (!lfile)
return false;
CDvdFile rfile(rstream.x60_fileName.c_str());
CDvdFile rfile(rstream.x60_fileName);
if (!rfile)
return false;