Fix an issue with QStringList being declared differently on Qt4
authorJanne Koschinski <janne@kuschku.de>
Fri, 1 Sep 2017 11:51:35 +0000 (13:51 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 20 Dec 2017 19:39:56 +0000 (20:39 +0100)
src/common/highlightrulemanager.cpp
src/common/highlightrulemanager.h

index d18d8d6..98548bd 100644 (file)
@@ -188,3 +188,8 @@ void HighlightRuleManager::toggleHighlightRule(const QString &highlightRule)
     _highlightRuleList[idx].isEnabled = !_highlightRuleList[idx].isEnabled;
     SYNC(ARG(highlightRule))
 }
+
+bool HighlightRuleManager::match(const Message &msg, const QString &currentNick, const QStringList &identityNicks)
+{
+    return _match(msg.contents(), msg.sender(), msg.type(), msg.flags(), msg.bufferInfo().bufferName(), currentNick, identityNicks);
+}
index 5799e48..75834d1 100644 (file)
@@ -80,7 +80,7 @@ public:
     /** This method checks if a message matches the users highlight rules.
       * \param msg The Message that should be checked
       */
-    inline bool match(const Message &msg, const QString &currentNick, const QStringList &identityNicks) { return _match(msg.contents(), msg.sender(), msg.type(), msg.flags(), msg.bufferInfo().bufferName(), currentNick, identityNicks); }
+    bool match(const Message &msg, const QString &currentNick, const QStringList &identityNicks);
 
 public slots:
     virtual QVariantMap initHighlightRuleList() const;