Skip to content
Permalink
Browse files

nlc

  • Loading branch information...
rt
rt committed Apr 27, 2019
1 parent 4dd4a15 commit f5ddb2f864939fb87901b1d53554b4724c6ebc41
Showing with 2 additions and 2 deletions.
  1. +2 −2 rts/System/FileSystem/ArchiveScanner.cpp
@@ -444,15 +444,15 @@ void CArchiveScanner::ScanAllDirs()
const std::array<std::string, 5>& dataDirRoots = dataDirLocater.GetDataDirRoots();

std::vector<std::string> scanDirs;
scanDirs.reserve(dataDirPaths.size());
scanDirs.reserve(dataDirPaths.size() * dataDirRoots.size());

// last specified is first scanned
for (auto d = dataDirPaths.rbegin(); d != dataDirPaths.rend(); ++d) {
for (const std::string& s: dataDirRoots) {
if (s.empty())
continue;

scanDirs.push_back(*d + s);
scanDirs.emplace_back(*d + s);
}
}

0 comments on commit f5ddb2f

Please sign in to comment.
You can’t perform that action at this time.