summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/beingpopup.cpp10
-rw-r--r--src/gui/popups/skillpopup.cpp2
-rw-r--r--src/gui/popups/skillpopup.h2
3 files changed, 8 insertions, 6 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())
diff --git a/src/gui/popups/skillpopup.cpp b/src/gui/popups/skillpopup.cpp
index 68fb42454..879e48a80 100644
--- a/src/gui/popups/skillpopup.cpp
+++ b/src/gui/popups/skillpopup.cpp
@@ -85,7 +85,7 @@ SkillPopup::~SkillPopup()
}
void SkillPopup::show(const SkillInfo *const skill,
- int level)
+ const int level)
{
if (!skill ||
!skill->data ||
diff --git a/src/gui/popups/skillpopup.h b/src/gui/popups/skillpopup.h
index b5c47f808..ab170002f 100644
--- a/src/gui/popups/skillpopup.h
+++ b/src/gui/popups/skillpopup.h
@@ -55,7 +55,7 @@ class SkillPopup final : public Popup
* Sets the info to be displayed given a particular item.
*/
void show(const SkillInfo *const skill,
- int level);
+ const int level);
void mouseMoved(MouseEvent &event) override final;