summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-13 01:33:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-13 01:33:11 +0300
commitb842de88ed73ef8df2615014ad2984b136fa4238 (patch)
tree99b16ea96c7cb196fd143e8f14ecba893834a0d5 /src/resources/dye/dyepalette.cpp
parent99208e8f8aba695a6fb0e4ed9f5c51108dd539f4 (diff)
downloadmv-b842de88ed73ef8df2615014ad2984b136fa4238.tar.gz
mv-b842de88ed73ef8df2615014ad2984b136fa4238.tar.bz2
mv-b842de88ed73ef8df2615014ad2984b136fa4238.tar.xz
mv-b842de88ed73ef8df2615014ad2984b136fa4238.zip
Fix compilation warnings.
Diffstat (limited to 'src/resources/dye/dyepalette.cpp')
-rw-r--r--src/resources/dye/dyepalette.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp
index 048b350e3..e3b3964ff 100644
--- a/src/resources/dye/dyepalette.cpp
+++ b/src/resources/dye/dyepalette.cpp
@@ -69,9 +69,9 @@ DyePalette::DyePalette(const std::string &restrict description,
}
else
{
- DyeColor color(0, 0, 0, 0);
- hexToColor(str, blockSize, color);
- mColors.push_back(color);
+ DyeColor color2(0, 0, 0, 0);
+ hexToColor(str, blockSize, color2);
+ mColors.push_back(color2);
}
}
return;
@@ -81,7 +81,7 @@ DyePalette::DyePalette(const std::string &restrict description,
}
void DyePalette::hexToColor(const std::string &hexStr,
- const int blockSize,
+ const uint8_t blockSize,
DyeColor &color)
{
for (size_t i = 0, colorIdx = 0;