diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
commit | 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (patch) | |
tree | 2053748aba4fd1e01020effe9322757426354d28 /src/gui/popups/beingpopup.cpp | |
parent | 2577a25f8a4acf587526809fda2ded95875e1222 (diff) | |
download | manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.gz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.bz2 manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.xz manaverse-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.zip |
Add missing const in gui directory.
Diffstat (limited to 'src/gui/popups/beingpopup.cpp')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index 7386ab055..d8d92f388 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -169,7 +169,7 @@ void BeingPopup::show(const int x, const int y, Being *const b) const ActorTypeT type = b->getType(); if (type == ActorType::Pet) { - PetInfo *const info = PlayerInfo::getPet(); + const PetInfo *const info = PlayerInfo::getPet(); if (info) { // TRANSLATORS: being popup label @@ -190,7 +190,7 @@ void BeingPopup::show(const int x, const int y, Being *const b) } else if (type == ActorType::Homunculus) { - HomunculusInfo *const info = PlayerInfo::getHomunculus(); + const HomunculusInfo *const info = PlayerInfo::getHomunculus(); if (info) { // TRANSLATORS: being popup label @@ -321,8 +321,10 @@ void BeingPopup::show(const int x, const int y, Being *const b) std::string effectsStr; FOR_EACH (std::set<int>::const_iterator, it, effects) { - StatusEffect *const effect = StatusEffect::getStatusEffect( - *it, Enable_true); + const StatusEffect *const effect = + StatusEffect::getStatusEffect( + *it, + Enable_true); if (!effect) continue; if (!effectsStr.empty()) |