1
0

Changed for-loop iterator in File.cpp to a reference type to reduce object copying and fix the clang build.

Fixes #2580
This commit is contained in:
bibo38 2015-10-30 20:09:39 +01:00
parent 0ab0a2f146
commit ec5c38761f

View File

@ -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 == ".."))