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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user