diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-18 19:02:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-18 19:02:45 +0300 |
commit | f1812857720449697c9106a7a3776b7202258cb3 (patch) | |
tree | eb100f3d713c3faeebd057c6c3d572e17295d345 /src/gui/windows/equipmentwindow.cpp | |
parent | 33b6e130de855dd3a81e739168a668d898f78e9e (diff) | |
download | manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.gz manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.bz2 manaplus-f1812857720449697c9106a7a3776b7202258cb3.tar.xz manaplus-f1812857720449697c9106a7a3776b7202258cb3.zip |
Fix code style in beingequipbackend and add some consts to it.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 54b3f2f7c..c8a8da5ab 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -397,7 +397,7 @@ void EquipmentWindow::updatePage() mRedraw = true; } -Item *EquipmentWindow::getItem(const int x, const int y) const +const Item *EquipmentWindow::getItem(const int x, const int y) const { if (!mEquipment) return nullptr; @@ -469,7 +469,7 @@ void EquipmentWindow::mousePressed(MouseEvent& event) } else if (event.getButton() == MouseButton::RIGHT) { - if (Item *const item = getItem(x, y)) + if (const Item *const item = getItem(x, y)) { if (itemPopup) itemPopup->setVisible(Visible_false); |