teat application: Prevent copying dir entries

This commit is contained in:
Martchus 2017-11-01 19:17:57 +01:00
parent 9fb347db24
commit 6fd2603cff
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ void TestApplication::readFallbackTestfilePathFromSrcRef()
// check whether the referenced source directory contains a "testfiles" directory
#ifdef PLATFORM_UNIX // directoryEntries() is not implemented under Windows so we can only to the check under UNIX
bool hasTestfilesDir = false;
for (const string dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
for (const string &dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
if (dir == "testfiles") {
hasTestfilesDir = true;
break;