diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-05 01:11:04 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-05 01:11:04 +0900 |
| commit | 1d56c172251ec9f7c2499c7a1f2885af61066f9a (patch) | |
| tree | 3e3cb7a6cde33081291741507d94b769fb37d147 /src/File.cc | |
| parent | 150c1ab0c3f461888c5913deebaee6f87e500414 (diff) | |
Code cleanup. Avoid std::string temporaries.
Diffstat (limited to 'src/File.cc')
| -rw-r--r-- | src/File.cc | 2 |
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())); |
