summaryrefslogtreecommitdiff
path: root/src/File.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-24 23:01:08 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-24 23:01:08 +0900
commitd95a1798760baba948a821b7c849f1a85cc04e80 (patch)
treea58cef64f771e87f8c9f880389ea8e8722219e09 /src/File.cc
parent4423ece43d4aea21a4f34043625838230ce1966c (diff)
Removed A2STR strings other than NIL
Diffstat (limited to 'src/File.cc')
-rw-r--r--src/File.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/File.cc b/src/File.cc
index dab20cbb..4bef6712 100644
--- a/src/File.cc
+++ b/src/File.cc
@@ -216,10 +216,10 @@ std::string File::getDirname() const
if(name_.empty()) {
return A2STR::NIL;
} else {
- return A2STR::DOT_C;
+ return ".";
}
} else if(lastSlashIndex == 0) {
- return A2STR::SLASH_C;
+ return "/";
} else {
return name_.substr(0, lastSlashIndex);
}
@@ -281,7 +281,7 @@ std::string File::getCurrentDir()
if(_wgetcwd(buf, buflen)) {
return wCharToUtf8(buf);
} else {
- return A2STR::DOT_C;
+ return ".";
}
#else // !__MINGW32__
const size_t buflen = 2048;
@@ -289,7 +289,7 @@ std::string File::getCurrentDir()
if(getcwd(buf, buflen)) {
return std::string(buf);
} else {
- return A2STR::DOT_C;
+ return ".";
}
#endif // !__MINGW32__
}