Compare commits

...
Author SHA1 Message Date
admin 5c70807986 Use direct vector declarations in bridge factory tests 2026-06-23 13:07:15 -07:00
4 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ class BlowBridgeCommandFactoryTests : public ::testing::Test {
auto engOff = AddGenericUnit(1, 0, bridgePosition);
auto otherOff = AddGenericUnit(2, 1, adjacentOccupied);
auto units_vec = vector<Unit>{engOff, otherOff};
vector<Unit> units_vec{engOff, otherOff};
auto unitsOff = fbb.CreateVectorOfSortedStructs(&units_vec);
auto mapOff = AddBasicMap(fbb);
@@ -20,7 +20,7 @@ class BuildBridgeCommandFactoryTests : public ::testing::Test {
fbb.ForceDefaults(true);
const auto engOff = AddGenericUnit(1, 0, position);
auto unitsVec = vector<Unit>{engOff};
vector<Unit> unitsVec{engOff};
const auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
fbb.Finish(unitsOff);
@@ -23,7 +23,7 @@ class FearCommandFactoryTests : public ::testing::Test {
auto necroOff = AddGenericUnit(1, 0, position);
auto targetOff = AddGenericUnit(5, 1, adjacentPosition);
auto unitsVec = vector<Unit>{necroOff, targetOff};
vector<Unit> unitsVec{necroOff, targetOff};
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
auto mapOff = AddBasicMap(fbb);
@@ -43,7 +43,7 @@ class HolyWaveCommandFactoryTests : public ::testing::Test {
auto actorOff = AddGenericUnit(1, 0, position);
auto otherOff = AddGenericUnit(5, 1, Coords(5, 5));
auto unitsVec = vector<Unit>{actorOff, otherOff};
vector<Unit> unitsVec{actorOff, otherOff};
auto unitsOff = fbb.CreateVectorOfSortedStructs(&unitsVec);
auto mapOff = AddBasicMap(fbb);