diff options
Diffstat (limited to 'src/File.cc')
| -rw-r--r-- | src/File.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/File.cc b/src/File.cc index 4bef6712..ca3caf3a 100644 --- a/src/File.cc +++ b/src/File.cc @@ -294,14 +294,13 @@ std::string File::getCurrentDir() #endif // !__MINGW32__ } -const std::string& File::getPathSeparators() +const char* File::getPathSeparators() { #ifdef __MINGW32__ - static std::string s = "/\\"; + return "/\\"; #else // !__MINGW32__ - static std::string s = "/"; + return "/"; #endif // !__MINGW32__ - return s; } } // namespace aria2 |
