From c0d5142d1ed98b62ad87603fa9d2620dce256bd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 19:46:23 +0300 Subject: add consts in gui classes. --- src/gui/widgets/itemlinkhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/itemlinkhandler.cpp') diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index 0a2e61e25..fd70e2032 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -114,7 +114,7 @@ void ItemLinkHandler::handleLink(const std::string &link, if (!mItemPopup || link.empty()) return; - char ch = link[0]; + const char ch = link[0]; if (ch < '0' || ch > '9') return; @@ -125,7 +125,7 @@ void ItemLinkHandler::handleLink(const std::string &link, int color = 1; if (str.size() > 1) color = str[1]; - int id = str[0]; + const int id = str[0]; if (id > 0) { const ItemInfo &itemInfo = ItemDB::get(id); -- cgit v1.2.3-70-g09d2