summaryrefslogtreecommitdiff
path: root/include/regexpr.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-03 18:52:15 +0000
committerSadie Powell <sadie@witchery.services>2022-01-04 00:17:19 +0000
commita31a7f5a6ce3f47716a9313d232c2a40955fd1e1 (patch)
tree8061f572670ccda9030955b67cdefba7df4facce /include/regexpr.h
parent7531e90499d4cd60b6464c692725225e85c00738 (diff)
Use C++11 default initializers and destructors where possible.
Diffstat (limited to 'include/regexpr.h')
-rw-r--r--include/regexpr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/regexpr.h b/include/regexpr.h
index 92be87c89..20ed28098 100644
--- a/include/regexpr.h
+++ b/include/regexpr.h
@@ -21,7 +21,7 @@ class RegexException : public CoreException
public:
RegexException(const Anope::string &reason = "") : CoreException(reason) { }
- virtual ~RegexException() throw() { }
+ virtual ~RegexException() throw() = default;
};
class CoreExport Regex
@@ -30,7 +30,7 @@ class CoreExport Regex
protected:
Regex(const Anope::string &expr) : expression(expr) { }
public:
- virtual ~Regex() { }
+ virtual ~Regex() = default;
const Anope::string &GetExpression() { return expression; }
virtual bool Matches(const Anope::string &str) = 0;
};