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

@@ -116,7 +116,7 @@ public:
if (!this->bitmap->HasTile(TileIndex(this->tile))) ++(*this);
}
inline TileIterator& operator ++()
inline TileIterator& operator ++() override
{
(*this).OrthogonalTileIterator::operator++();
while (this->tile != INVALID_TILE && !this->bitmap->HasTile(TileIndex(this->tile))) {
@@ -125,7 +125,7 @@ public:
return *this;
}
virtual std::unique_ptr<TileIterator> Clone() const
std::unique_ptr<TileIterator> Clone() const override
{
return std::make_unique<BitmapTileIterator>(*this);
}