summaryrefslogtreecommitdiff
path: root/src/File.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-24 23:04:42 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-24 23:04:42 +0900
commit0144397e4b3897035d76c40827d7f8a753868f2a (patch)
tree55f51298c8a65827e6a8c2b30cac38ffe6229ee0 /src/File.cc
parentd95a1798760baba948a821b7c849f1a85cc04e80 (diff)
Rewritten File::getPathSeparators()
Diffstat (limited to 'src/File.cc')
-rw-r--r--src/File.cc7
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