summaryrefslogtreecommitdiff
path: root/src/File.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 01:11:04 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 01:11:04 +0900
commit1d56c172251ec9f7c2499c7a1f2885af61066f9a (patch)
tree3e3cb7a6cde33081291741507d94b769fb37d147 /src/File.cc
parent150c1ab0c3f461888c5913deebaee6f87e500414 (diff)
Code cleanup. Avoid std::string temporaries.
Diffstat (limited to 'src/File.cc')
-rw-r--r--src/File.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/File.cc b/src/File.cc
index 4dfc6cd9..f47b78c7 100644
--- a/src/File.cc
+++ b/src/File.cc
@@ -144,7 +144,7 @@ bool File::mkdirs() {
continue;
}
#endif // __MINGW32__
- std::string dir = std::string(begin, j);
+ std::string dir(begin, j);
A2_LOG_DEBUG(fmt("Making directory %s", dir.c_str()));
if(File(dir).isDir()) {
A2_LOG_DEBUG(fmt("%s exists and is a directory.", dir.c_str()));