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.h | |
parent | c430b75e370a21a17f80d4ba3acd84111828a462 (diff) | |
download | manaplus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.gz manaplus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.bz2 manaplus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.xz manaplus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.zip |
add const for methods return values.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 292089dc5..71a6119af 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -238,7 +238,7 @@ class ItemInfo final void setSpriteOrder(int *const ptr, const int direction, const int n, const int def = -1) const; - std::map<int, int> getTags() const A_WARN_UNUSED + const std::map<int, int> &getTags() const A_WARN_UNUSED { return mTags; } void addTag(const int tag) @@ -272,8 +272,8 @@ class ItemInfo final std::map<int, int> *addReplaceSprite(const int sprite, const int direction); - SpriteToItemMap *getSpriteToItemReplaceMap(const int directions) - const A_WARN_UNUSED; + const SpriteToItemMap *getSpriteToItemReplaceMap(const int directions) + const A_WARN_UNUSED; std::string getDyeColorsString(const int color) const A_WARN_UNUSED; |