From 0144397e4b3897035d76c40827d7f8a753868f2a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 24 Sep 2012 23:04:42 +0900 Subject: Rewritten File::getPathSeparators() --- src/File.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/File.cc') 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 -- cgit