1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #3486 from Alexander-Wilms/replace-redundant-types-with-auto

Replace redundant types with `auto`
This commit is contained in:
Ivan Savenko
2024-01-17 13:31:05 +02:00
committed by GitHub
10 changed files with 16 additions and 16 deletions

View File

@@ -85,7 +85,7 @@ public:
UnitFake & add(ui8 side)
{
UnitFake * unit = new UnitFake();
auto * unit = new UnitFake();
EXPECT_CALL(*unit, unitSide()).WillRepeatedly(Return(side));
unit->setDefaultExpectations();

View File

@@ -46,7 +46,7 @@ void UnitFake::expectAnyBonusSystemCall()
UnitFake & UnitsFake::add(ui8 side)
{
UnitFake * unit = new UnitFake();
auto * unit = new UnitFake();
ON_CALL(*unit, unitSide()).WillByDefault(Return(side));
unit->redirectBonusesToFake();