Skip to content

Commit

Permalink
Style nits
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz committed Oct 14, 2024
1 parent 91a51a2 commit 7624772
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/fheroes2/gui/interface_itemsbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ namespace Interface
using ItemsIterator = typename std::vector<Item *>::iterator;
using ItemIterPos = std::pair<ItemsIterator, fheroes2::Rect>;

std::vector<Item *> items;

std::vector<int32_t> _customItemsCountInRow;

virtual void SetContentItems()
{
// Do nothing.
Expand Down Expand Up @@ -270,6 +266,9 @@ namespace Interface
return { items.end(), {} };
}

std::vector<Item *> items;
std::vector<int32_t> _customItemsCountInRow;

private:
void calculateItemsPos()
{
Expand Down Expand Up @@ -454,9 +453,6 @@ namespace Interface
using ItemsIterator = typename ItemsBar<Item>::ItemsIterator;
using ItemIterPos = typename ItemsBar<Item>::ItemIterPos;

ItemsIterator topItem;
ItemIterPos curItemPos;

ItemsIterator GetCurItemIter() final
{
return curItemPos.first;
Expand Down Expand Up @@ -586,6 +582,9 @@ namespace Interface

return false;
}

ItemsIterator topItem;
ItemIterPos curItemPos;
};
}

Expand Down

0 comments on commit 7624772

Please sign in to comment.