1
0

Merge pull request #2581 from bibo38/clangfix

Changed for-loop iterator in File.cpp
This commit is contained in:
Lukas Pioch 2015-10-30 20:27:20 +01:00
commit 5d2b70ed80

View File

@ -334,7 +334,7 @@ bool cFile::DeleteFolder(const AString & a_FolderName)
bool cFile::DeleteFolderContents(const AString & a_FolderName) bool cFile::DeleteFolderContents(const AString & a_FolderName)
{ {
auto Contents = cFile::GetFolderContents(a_FolderName); auto Contents = cFile::GetFolderContents(a_FolderName);
for (const auto item: Contents) for (const auto & item: Contents)
{ {
// Skip "." and ".." altogether: // Skip "." and ".." altogether:
if ((item == ".") || (item == "..")) if ((item == ".") || (item == ".."))