1
0

Some emplace_back replacements (#5149)

* replace push_back with emplace_back when a new object was created in the function call
This commit is contained in:
12xx12
2021-03-07 17:31:43 +01:00
committed by GitHub
parent d9a2b8611c
commit 3daf253b7f
30 changed files with 194 additions and 194 deletions

View File

@@ -226,7 +226,7 @@ cHeiGenMultiCache::cHeiGenMultiCache(const cTerrainHeightGenPtr & a_HeiGenToCach
m_SubCaches.reserve(a_NumSubCaches);
for (size_t i = 0; i < a_NumSubCaches; i++)
{
m_SubCaches.push_back(std::make_shared<cHeiGenCache>(a_HeiGenToCache, a_SubCacheSize));
m_SubCaches.emplace_back(std::make_shared<cHeiGenCache>(a_HeiGenToCache, a_SubCacheSize));
}
}