Use emplace_back with reference as return type.

This commit is contained in:
ZehMatt authored and Aaron van Geffen committed 2018-04-26 21:26:30 +02:00
1 parent dd58a710ee
commit ee53855c62
1 file changed
+1 -3
+1 -3
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,