summaryrefslogtreecommitdiff
path: root/src/desktop/Rule.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-01-23 21:55:41 +0100
committerGitHub <noreply@github.com>2025-01-23 21:55:41 +0100
commit0a1ae48a9fd6eb76baad27de98c00f653a55e4ac (patch)
tree007cd36eb83d343d2aba49cf0741028c5f554895 /src/desktop/Rule.cpp
parentae403e6a05452336abd97e61be2706f6a930d827 (diff)
core: move all shared_ptrs from the STL to hyprutils (#9143)
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())