diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-24 23:04:42 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-24 23:04:42 +0900 |
| commit | 0144397e4b3897035d76c40827d7f8a753868f2a (patch) | |
| tree | 55f51298c8a65827e6a8c2b30cac38ffe6229ee0 /src/File.cc | |
| parent | d95a1798760baba948a821b7c849f1a85cc04e80 (diff) | |
Rewritten File::getPathSeparators()
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 |
