summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 18:12:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 18:12:56 +0300
commit4e96ac9f7b42fd26b988b231e79c25b28a7fe6af (patch)
tree49e9e0e6aeef6a2573e1329b357600664f106780 /src/gui
parent467a5c03ccb5ea2d1977bd84adcab69eefb4e051 (diff)
downloadmanaplus-4e96ac9f7b42fd26b988b231e79c25b28a7fe6af.tar.gz
manaplus-4e96ac9f7b42fd26b988b231e79c25b28a7fe6af.tar.bz2
manaplus-4e96ac9f7b42fd26b988b231e79c25b28a7fe6af.tar.xz
manaplus-4e96ac9f7b42fd26b988b231e79c25b28a7fe6af.zip
Change sign on rainbow color.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp6
-rw-r--r--src/gui/windows/chatwindow.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index e15f68f35..057feb8d7 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -92,7 +92,7 @@ ChatWindow::ChatWindow() :
mItemLinkHandler(new ItemLinkHandler),
mChatTabs(CREATEWIDGETR(TabbedArea, this)),
mChatInput(new ChatInput(this)),
- mRainbowColor(0),
+ mRainbowColor(0U),
mWhispers(),
mChannels(),
mHistory(),
@@ -1307,8 +1307,8 @@ void ChatWindow::postConnection()
else if (ch > 0xc0 || ch < 0x80) \
{ \
newMsg += "##" + toString(fun) + msg.at(f); \
- if (mRainbowColor > 9) \
- mRainbowColor = 0; \
+ if (mRainbowColor > 9U) \
+ mRainbowColor = 0U; \
} \
else \
{ \
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 0e1b6336d..f586e97f7 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -368,7 +368,7 @@ class ChatWindow final : public Window,
void initTradeFilter();
- int mRainbowColor;
+ unsigned int mRainbowColor;
void debugMessage(const std::string &msg) override final;