From 4e96ac9f7b42fd26b988b231e79c25b28a7fe6af Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 18:12:56 +0300 Subject: Change sign on rainbow color. --- src/gui/windows/chatwindow.cpp | 6 +++--- src/gui/windows/chatwindow.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2