Codechange: Add missing override specifiers.

This commit is contained in:
Peter Nelson
2023-04-13 07:23:18 +01:00
committed by PeterN
parent a454773a73
commit 49dae08a3b
34 changed files with 123 additions and 123 deletions

View File

@@ -538,7 +538,7 @@ public:
if (!st->TileBelongsToAirport(this->tile)) ++(*this);
}
inline TileIterator& operator ++()
inline TileIterator& operator ++() override
{
(*this).OrthogonalTileIterator::operator++();
while (this->tile != INVALID_TILE && !st->TileBelongsToAirport(this->tile)) {
@@ -547,7 +547,7 @@ public:
return *this;
}
virtual std::unique_ptr<TileIterator> Clone() const
std::unique_ptr<TileIterator> Clone() const override
{
return std::make_unique<AirportTileIterator>(*this);
}