tests: Convert ExpressionMatchTests into a GTest-based test case
[quassel.git] / src / common / nickhighlightmatcher.h
index efc3d8e..ec4df0d 100644 (file)
@@ -20,6 +20,8 @@
 
 #pragma once
 
+#include "common-export.h"
+
 #include <QHash>
 #include <QString>
 #include <QStringList>
 /**
  * Nickname matcher with automatic caching for performance
  */
-class NickHighlightMatcher
+class COMMON_EXPORT NickHighlightMatcher
 {
 public:
     /// Nickname highlighting mode
-#if QT_VERSION >= 0x050000
     enum class HighlightNickType {
-#else
-    enum HighlightNickType {
-#endif
         NoNick = 0x00,      ///< Don't match any nickname
         CurrentNick = 0x01, ///< Match the current nickname
         AllNicks = 0x02     ///< Match all configured nicknames in the chosen identity
@@ -49,7 +47,7 @@ public:
     /**
      * Construct an empty NicknameMatcher
      */
-    NickHighlightMatcher() {}
+    NickHighlightMatcher() = default;
 
     /**
      * Construct a configured NicknameMatcher