diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popupmenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/chattab.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 2739f13a9..79618ad04 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -462,7 +462,7 @@ void PopupMenu::showPopup(int x, int y, FloorItem *floorItem) return; mFloorItem = floorItem; - ItemInfo info = floorItem->getInfo(); + const ItemInfo &info = floorItem->getInfo(); mBrowserBox->clearRows(); std::string name; diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 3f2166de0..42a39a20f 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -344,7 +344,7 @@ void ChatTab::chatInput(const std::string &message) { temp = msg.substr(start + 1, end - start - 1); - const ItemInfo itemInfo = ItemDB::get(temp); + const ItemInfo &itemInfo = ItemDB::get(temp); if (itemInfo.getId() != 0) { msg.insert(end, "@@"); |