diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-28 00:58:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-28 23:40:11 +0300 |
commit | 99906c44cf9208dee4e808e03fddd1f209b6b7fc (patch) | |
tree | 8472ed92c0963938dee4290d25cd6c4ebf2e4d81 /src/resources/iteminfo.cpp | |
parent | c430b75e370a21a17f80d4ba3acd84111828a462 (diff) | |
download | mv-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.gz mv-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.bz2 mv-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.xz mv-99906c44cf9208dee4e808e03fddd1f209b6b7fc.zip |
add const for methods return values.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index b4d1d5a69..dd86e3196 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -236,7 +236,8 @@ const std::string ItemInfo::replaceColors(std::string str, return replaceAll(str, "%Color%", name); } -SpriteToItemMap *ItemInfo::getSpriteToItemReplaceMap(const int direction) const +const SpriteToItemMap *ItemInfo::getSpriteToItemReplaceMap(const int direction) + const { if (direction < 0 || direction >= 10) return nullptr; |