summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbibo38 <bibo38@github.com>2015-10-30 20:09:39 +0100
committerbibo38 <bibo38@github.com>2015-10-30 20:16:45 +0100
commitec5c38761f69ed34f77c82fb8fc3367b4d1871d0 (patch)
tree43956b47706d00ddd57fcf3d89b3eb125d0fd8bb /src
parentMerge pull request #2567 from cuberite/cave_spider (diff)
downloadcuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar.gz
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar.bz2
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar.lz
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar.xz
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.tar.zst
cuberite-ec5c38761f69ed34f77c82fb8fc3367b4d1871d0.zip
Diffstat (limited to 'src')
-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 == ".."))