Merge pull request #2581 from bibo38/clangfix
Changed for-loop iterator in File.cpp
This commit is contained in:
commit
5d2b70ed80
@ -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 == ".."))
|
||||
|
Loading…
Reference in New Issue
Block a user