diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-20 19:47:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-20 19:47:54 +0300 |
commit | 8167471e438210f4a81fca8d2c70f52bb736983f (patch) | |
tree | 015cadacb4033d508dd8c67ffa2b79b46225d46d /src/resources/iteminfo.cpp | |
parent | 3252fd4454419f7576390dea6157897218a503d6 (diff) | |
download | manaplus-8167471e438210f4a81fca8d2c70f52bb736983f.tar.gz manaplus-8167471e438210f4a81fca8d2c70f52bb736983f.tar.bz2 manaplus-8167471e438210f4a81fca8d2c70f52bb736983f.tar.xz manaplus-8167471e438210f4a81fca8d2c70f52bb736983f.zip |
Move itemcolordata into separate file.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 7a88a63ca..7218f2cc8 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -227,7 +227,7 @@ std::string ItemInfo::getDyeColorsString(const ItemColor color) const if ((mColorsList == nullptr) || mColorsListName.empty()) return ""; - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mColorsList->find(color); if (it == mColorsList->end()) return ""; @@ -240,7 +240,7 @@ std::string ItemInfo::getDyeIconColorsString(const ItemColor color) const if ((mIconColorsList == nullptr) || mIconColorsListName.empty()) return ""; - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mIconColorsList->find(color); if (it == mIconColorsList->end()) return ""; @@ -269,7 +269,7 @@ const std::string ItemInfo::replaceColors(std::string str, std::string name; if ((mColorsList != nullptr) && !mColorsListName.empty()) { - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mColorsList->find(color); if (it == mColorsList->end()) name = "unknown"; @@ -413,7 +413,7 @@ std::string ItemInfo::getColorName(const ItemColor idx) const if (mColorsList == nullptr) return std::string(); - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mColorsList->find(idx); if (it == mColorsList->end()) { @@ -430,7 +430,7 @@ std::string ItemInfo::getColor(const ItemColor idx) const if (mColorsList == nullptr) return std::string(); - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mColorsList->find(idx); if (it == mColorsList->end()) { @@ -447,7 +447,7 @@ std::string ItemInfo::getIconColorName(const ItemColor idx) const if (mIconColorsList == nullptr) return std::string(); - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mIconColorsList->find(idx); if (it == mIconColorsList->end()) { @@ -464,7 +464,7 @@ std::string ItemInfo::getIconColor(const ItemColor idx) const if (mIconColorsList == nullptr) return std::string(); - const std::map <ItemColor, ColorDB::ItemColorData>::const_iterator + const std::map <ItemColor, ItemColorData>::const_iterator it = mIconColorsList->find(idx); if (it == mIconColorsList->end()) { |