Skip to content

Commit

Permalink
Make the ItemsBar::GetCurItemIter() non-virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz committed Oct 14, 2024
1 parent 7624772 commit ce0d465
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/fheroes2/gui/interface_itemsbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ namespace Interface
return items.end();
}

virtual ItemsIterator GetCurItemIter()
{
return items.end();
}

virtual void RedrawItemIter( ItemsIterator it, const fheroes2::Rect & pos, fheroes2::Image & output )
{
RedrawItem( **it, pos, output );
Expand Down Expand Up @@ -453,7 +448,7 @@ namespace Interface
using ItemsIterator = typename ItemsBar<Item>::ItemsIterator;
using ItemIterPos = typename ItemsBar<Item>::ItemIterPos;

ItemsIterator GetCurItemIter() final
ItemsIterator GetCurItemIter()
{
return curItemPos.first;
}
Expand Down

0 comments on commit ce0d465

Please sign in to comment.