diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-29 21:44:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-29 21:44:11 +0300 |
commit | 337a52a41ea44570da65586403f14248042f0169 (patch) | |
tree | 27f58dd5f9c9f50310c94c649595a9e7f8e00455 /src/fs/virtfs/fs.cpp | |
parent | 36c45ae7d8d2577a900ec266b64448d4b488013d (diff) | |
download | plus-337a52a41ea44570da65586403f14248042f0169.tar.gz plus-337a52a41ea44570da65586403f14248042f0169.tar.bz2 plus-337a52a41ea44570da65586403f14248042f0169.tar.xz plus-337a52a41ea44570da65586403f14248042f0169.zip |
Use std::move in some places.
Diffstat (limited to 'src/fs/virtfs/fs.cpp')
-rw-r--r-- | src/fs/virtfs/fs.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fs/virtfs/fs.cpp b/src/fs/virtfs/fs.cpp index d9973d79b..9fe755560 100644 --- a/src/fs/virtfs/fs.cpp +++ b/src/fs/virtfs/fs.cpp @@ -34,6 +34,7 @@ #include "utils/checkutils.h" #include "utils/foreach.h" +#include "utils/stdmove.h" #include "utils/stringutils.h" #include "debug.h" @@ -153,7 +154,7 @@ namespace VirtFs return list; } - std::string rootDir = dirName; + std::string rootDir = STD_MOVE(dirName); if (findLast(rootDir, std::string(dirSeparator)) == false) rootDir += dirSeparator; StringVect &names = list->names; @@ -178,7 +179,7 @@ namespace VirtFs return; } - std::string rootDir = dirName; + std::string rootDir = STD_MOVE(dirName); if (findLast(rootDir, std::string(dirSeparator)) == false) rootDir += dirSeparator; @@ -200,7 +201,7 @@ namespace VirtFs return; } - std::string rootDir = dirName; + std::string rootDir = STD_MOVE(dirName); if (findLast(rootDir, std::string(dirSeparator)) == false) rootDir += dirSeparator; @@ -223,7 +224,7 @@ namespace VirtFs return; } - std::string rootDir = dirName; + std::string rootDir = STD_MOVE(dirName); if (findLast(rootDir, std::string(dirSeparator)) == false) rootDir += dirSeparator; @@ -243,7 +244,7 @@ namespace VirtFs name.c_str()); return false; } - std::string dirName = name; + std::string dirName = STD_MOVE(name); if (findLast(dirName, std::string(dirSeparator)) == false) dirName += dirSeparator; |