diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-01 20:49:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 00:37:51 +0300 |
commit | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch) | |
tree | 7cadc707bb49e4c148ba9c182075697a9643e20a /src/gui/widgets/avatarlistbox.cpp | |
parent | ed3410d7eb61593a2235ddba97ce257c85e405a6 (diff) | |
download | plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2 plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index b33233d73..b54b3d945 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -45,7 +45,7 @@ int AvatarListBox::instances = 0; Image *AvatarListBox::onlineIcon = nullptr; Image *AvatarListBox::offlineIcon = nullptr; -AvatarListBox::AvatarListBox(AvatarListModel *model): +AvatarListBox::AvatarListBox(AvatarListModel *const model) : ListBox(model), mShowGender(config.getBoolValue("showgender")), mShowLevel(config.getBoolValue("showlevel")), @@ -344,8 +344,8 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) const Avatar *const avatar = model->getAvatarAt(selected); if (avatar) { - Being *const being = actorSpriteManager->findBeingByName( - avatar->getName(), Being::PLAYER); + const Being *const being = actorSpriteManager + ->findBeingByName(avatar->getName(), Being::PLAYER); if (being) viewport->showPopup(being); else |