summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-10-30 20:27:20 +0100
committerLukas Pioch <lukas@zgow.de>2015-10-30 20:27:20 +0100
commit5d2b70ed807da2e0858216b8fd7eaf0e28d402c5 (patch)
tree43956b47706d00ddd57fcf3d89b3eb125d0fd8bb /src/OSSupport
parentMerge pull request #2567 from cuberite/cave_spider (diff)
parentChanged for-loop iterator in File.cpp to a reference type to reduce object copying and fix the clang build. (diff)
downloadcuberite-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.cpp2
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 == ".."))