From bfc6eb8d4b22f127c0aa7ac2c89422564de394cc Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 15 Jan 2017 11:21:28 -0500 Subject: [PATCH] remove all usages of non-standard #warn --- emojis.cpp | 2 +- emotes.cpp | 2 +- ircmanager.cpp | 4 ++-- message.cpp | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/emojis.cpp b/emojis.cpp index 18bc37680..8218c17f4 100644 --- a/emojis.cpp +++ b/emojis.cpp @@ -20,7 +20,7 @@ ConcurrentMap *Emojis::imageCache = QString Emojis::replaceShortCodes(const QString &text) { -#pragma message WARN("xD") + // TODO: Implement this xD return text; } diff --git a/emotes.cpp b/emotes.cpp index 5509592cd..0490cfc2f 100644 --- a/emotes.cpp +++ b/emotes.cpp @@ -42,7 +42,7 @@ Emotes::getTwitchEmoteLink(long id, qreal &scale) LazyLoadedImage * Emotes::getCheerImage(long long amount, bool animated) { -#pragma message WARN("xD") + // TODO: fix this xD return getCheerBadge(amount); } diff --git a/ircmanager.cpp b/ircmanager.cpp index f11da49bc..9bd90e4f5 100644 --- a/ircmanager.cpp +++ b/ircmanager.cpp @@ -217,7 +217,7 @@ IrcManager::addIgnoredUser(QString const &username) { QString errorMessage; if (!tryAddIgnoredUser(username, errorMessage)) { -#pragma message WARN("Implement IrcManager::addIgnoredUser") + // TODO: Implement IrcManager::addIgnoredUser } } @@ -251,6 +251,6 @@ IrcManager::removeIgnoredUser(QString const &username) { QString errorMessage; if (!tryRemoveIgnoredUser(username, errorMessage)) { -#pragma message WARN("TODO: Implement IrcManager::removeIgnoredUser") + // TODO: Implement IrcManager::removeIgnoredUser } } diff --git a/message.cpp b/message.cpp index b76433999..85f04bf3d 100644 --- a/message.cpp +++ b/message.cpp @@ -105,7 +105,7 @@ Message::Message(const IrcPrivateMessage &ircMessage, const Channel &channel, Word::BadgeGlobalMod, QString(), QString("Global Moderator"))); } else if (badge == "moderator/1") { -#pragma message WARN("xD") + // TODO: implement this xD words.push_back(Word( Resources::badgeTurbo(), Word::BadgeModerator, QString(), QString("Channel Moderator"))); // custom badge @@ -183,7 +183,7 @@ Message::Message(const IrcPrivateMessage &ircMessage, const Channel &channel, userDisplayString, QString())); // highlights -#pragma message WARN("xD") + // TODO: implement this xD // bits QString bits = ""; @@ -353,7 +353,7 @@ Message::Message(const IrcPrivateMessage &ircMessage, const Channel &channel, // bttv / ffz emotes LazyLoadedImage *bttvEmote; -#pragma message WARN("ignored emotes") + // TODO: Implement this (ignored emotes) if (Emotes::bttvEmotes().tryGet(string, bttvEmote) || channel.bttvChannelEmotes().tryGet(string, bttvEmote) || Emotes::ffzEmotes().tryGet(string, bttvEmote) || @@ -388,7 +388,7 @@ Message::Message(const IrcPrivateMessage &ircMessage, const Channel &channel, this->m_words = words; -#pragma message WARN("xD") + // TODO: Implement this xD // if (!isReceivedWhisper && // AppSettings.HighlightIgnoredUsers.ContainsKey(Username)) // { @@ -593,6 +593,6 @@ Message::sortTwitchEmotes(const std::pair &a, QString Message::matchLink(const QString &string) { -#pragma message WARN("xD") + // TODO: Implement this xD return QString(); }