summaryrefslogtreecommitdiff
path: root/src/desktop/Rule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/Rule.cpp')
-rw-r--r--src/desktop/Rule.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/desktop/Rule.cpp b/src/desktop/Rule.cpp
index ae280642..aa87a483 100644
--- a/src/desktop/Rule.cpp
+++ b/src/desktop/Rule.cpp
@@ -1,12 +1,13 @@
-#include "Rule.hpp"
#include <re2/re2.h>
+#include "../helpers/memory/Memory.hpp"
+#include "Rule.hpp"
#include "../debug/Log.hpp"
CRuleRegexContainer::CRuleRegexContainer(const std::string& regex_) {
const bool NEGATIVE = regex_.starts_with("negative:");
negative = NEGATIVE;
- regex = std::make_unique<RE2>(NEGATIVE ? regex_.substr(9) : regex_);
+ regex = makeUnique<RE2>(NEGATIVE ? regex_.substr(9) : regex_);
// TODO: maybe pop an error?
if (!regex->ok())