Used single quotes for single character in string::find algorithm, more efficient

This commit is contained in:
asapelkin
2019-10-27 01:55:17 +03:00
committed by wmayer
parent 7b8f473cc9
commit 875a463923
10 changed files with 11 additions and 11 deletions

View File

@@ -317,7 +317,7 @@ void FileWriter::writeFiles(void)
if (shouldWrite(entry.FileName, entry.Object)) {
std::string filePath = entry.FileName;
std::string::size_type pos = 0;
while ((pos = filePath.find("/", pos)) != std::string::npos) {
while ((pos = filePath.find('/', pos)) != std::string::npos) {
std::string dirName = DirName + "/" + filePath.substr(0, pos);
pos++;
Base::FileInfo fi(dirName);