summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-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;