mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
refactor(Core): apply clang-tidy modernize-use-emplace (#3828)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user