diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-10-30 20:27:20 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-10-30 20:27:20 +0100 |
commit | 5d2b70ed807da2e0858216b8fd7eaf0e28d402c5 (patch) | |
tree | 43956b47706d00ddd57fcf3d89b3eb125d0fd8bb /src/OSSupport | |
parent | Merge pull request #2567 from cuberite/cave_spider (diff) | |
parent | Changed for-loop iterator in File.cpp to a reference type to reduce object copying and fix the clang build. (diff) | |
download | cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar.gz cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar.bz2 cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar.lz cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar.xz cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.tar.zst cuberite-5d2b70ed807da2e0858216b8fd7eaf0e28d402c5.zip |
Diffstat (limited to 'src/OSSupport')
-rw-r--r-- | src/OSSupport/File.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index dec873ccd..0511c6083 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -334,7 +334,7 @@ bool cFile::DeleteFolder(const AString & a_FolderName) bool cFile::DeleteFolderContents(const AString & a_FolderName) { auto Contents = cFile::GetFolderContents(a_FolderName); - for (const auto item: Contents) + for (const auto & item: Contents) { // Skip "." and ".." altogether: if ((item == ".") || (item == "..")) |