refactor(Core): apply clang-tidy modernize-use-emplace (#3828)

This commit is contained in:
Francesco Borzì
2020-12-07 18:25:55 +01:00
committed by GitHub
parent 3469115f4d
commit 0b7b36f20c
3 changed files with 15 additions and 15 deletions

View File

@@ -197,7 +197,7 @@ namespace MMAP
for (unsigned int i = 0; i < threads; ++i)
{
_workerThreads.push_back(std::thread(&MapBuilder::WorkerThread, this));
_workerThreads.emplace_back(&MapBuilder::WorkerThread, this);
}
m_tiles.sort([](MapTiles a, MapTiles b)

View File

@@ -108,7 +108,7 @@ namespace MMAP
if ((dp = readdir(dirp)) != nullptr)
{
if (matchWildcardFilter(filter.c_str(), dp->d_name))
fileList.push_back(std::string(dp->d_name));
fileList.emplace_back(dp->d_name);
}
else
break;