1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Use emplace_back with reference as return type.

This commit is contained in:
ZehMatt
2018-04-26 13:31:19 +02:00
committed by Aaron van Geffen
parent dd58a710ee
commit ee53855c62

View File

@@ -241,9 +241,7 @@ private:
stepSize = totalCount - rangeStart;
}
// TODO: change to auto& items = containers.emplace_back() in C++17
containers.emplace_back();
auto& items = containers.back();
auto& items = containers.emplace_back();
jobPool.AddTask(std::bind(&FileIndex<TItem>::BuildRange,
this,