]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/regex.h
Merge pull request #677 from Robby-/master-dnsblzline
[user/henk/code/inspircd.git] / include / modules / regex.h
index e278df502134d7581f6965c5e688e7ddb5e4812b..5ef00cdd043806e178878c9f7fe47010db70eb76 100644 (file)
 class Regex : public classbase
 {
 protected:
-       std::string regex_string; // The raw uncompiled regex string.
+       /** The uncompiled regex string. */
+       std::string regex_string;
 
        // Constructor may as well be protected, as this class is abstract.
-       Regex(const std::string& rx) : regex_string(rx)
-       {
-       }
+       Regex(const std::string& rx) : regex_string(rx) { }
 
 public:
 
-       virtual ~Regex()
-       {
-       }
+       virtual ~Regex() { }
 
        virtual bool Matches(const std::string& text) = 0;
 
@@ -49,7 +46,7 @@ public:
 class RegexFactory : public DataProvider
 {
  public:
-       RegexFactory(Module* Creator, const std::string& Name) : DataProvider(Creator, Name) {}
+       RegexFactory(Module* Creator, const std::string& Name) : DataProvider(Creator, Name) { }
 
        virtual Regex* Create(const std::string& expr) = 0;
 };