summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common/Test.cpp4
-rw-r--r--lib/common/Test.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/Test.cpp b/lib/common/Test.cpp
index 56638058..6d685918 100644
--- a/lib/common/Test.cpp
+++ b/lib/common/Test.cpp
@@ -43,10 +43,10 @@ bool TestDirExists(const char *Filename)
}
// -1 if doesn't exist
-int TestGetFileSize(const char *Filename)
+int TestGetFileSize(const std::string& Filename)
{
EMU_STRUCT_STAT st;
- if(EMU_STAT(Filename, &st) == 0)
+ if(EMU_STAT(Filename.c_str(), &st) == 0)
{
return st.st_size;
}
diff --git a/lib/common/Test.h b/lib/common/Test.h
index 08ba4542..802d8636 100644
--- a/lib/common/Test.h
+++ b/lib/common/Test.h
@@ -140,7 +140,7 @@ bool TestFileExists(const char *Filename);
bool TestDirExists(const char *Filename);
// -1 if doesn't exist
-int TestGetFileSize(const char *Filename);
+int TestGetFileSize(const std::string& Filename);
std::string ConvertPaths(const std::string& rOriginal);
int RunCommand(const std::string& rCommandLine);
bool ServerIsAlive(int pid);