summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-06-22 16:38:12 -0400
committerLioncash <mathew1800@gmail.com>2018-06-22 16:38:15 -0400
commit537d09e1d4e01a2a3d36221c1df152b3cefd3953 (patch)
tree60f90d936cf364c8497ac0d0795f706c68bc317a /Source
parentf62dffa9f07a45683bce1a130919cbe666dabbe6 (diff)
DSPTool: Remove unnecessary c_str() calls
These functions already accept std::string instances, so c_str here just causes an unnecessary copy of the string to be made.
Diffstat (limited to 'Source')
-rw-r--r--Source/DSPTool/DSPTool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/DSPTool/DSPTool.cpp b/Source/DSPTool/DSPTool.cpp
index 5cb0547b30..340682a3cb 100644
--- a/Source/DSPTool/DSPTool.cpp
+++ b/Source/DSPTool/DSPTool.cpp
@@ -267,7 +267,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou
}
std::string source;
- if (File::ReadFileToString(input_name.c_str(), source))
+ if (File::ReadFileToString(input_name, source))
{
if (multiple)
{
@@ -291,7 +291,7 @@ static bool PerformAssembly(const std::string& input_name, const std::string& ou
for (int i = 0; i < lines; i++)
{
- if (!File::ReadFileToString(files[i].c_str(), currentSource))
+ if (!File::ReadFileToString(files[i], currentSource))
{
printf("ERROR reading %s, skipping...\n", files[i].c_str());
lines--;