diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-13 02:48:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-13 02:48:42 +0300 |
commit | 92aaf04a838d4498e84db9d05fcded8aa7d25ba9 (patch) | |
tree | 0702f1b7c5f9ef953fb5fdc0c4620c3b89dc5821 /src/gui | |
parent | 1482397d014db36cf80833cf47bdf32acc24806e (diff) | |
download | manaplus-92aaf04a838d4498e84db9d05fcded8aa7d25ba9.tar.gz manaplus-92aaf04a838d4498e84db9d05fcded8aa7d25ba9.tar.bz2 manaplus-92aaf04a838d4498e84db9d05fcded8aa7d25ba9.tar.xz manaplus-92aaf04a838d4498e84db9d05fcded8aa7d25ba9.zip |
Add missing reference into reading group name.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index c9e9e8608..251848ed8 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -171,7 +171,7 @@ void BeingPopup::show(const int x, const int y, Being *const b) else { const int groupId = b->getGroupId(); - const std::string groupName = GroupDb::getLongName(groupId); + const std::string &groupName = GroupDb::getLongName(groupId); if (!groupName.empty()) { ptr = mLabels[num]; diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index c40ba819c..6553c8dc5 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -261,7 +261,7 @@ void StatusWindow::addTabBasic(const std::string &name) void StatusWindow::updateLevelLabel() { const int groupId = localPlayer->getGroupId(); - const std::string name = GroupDb::getName(groupId); + const std::string &name = GroupDb::getName(groupId); if (localPlayer != nullptr && !name.empty()) { |