summaryrefslogtreecommitdiff
path: root/src/desktop/Rule.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-04-25 02:37:12 +0200
committerGitHub <noreply@github.com>2025-04-25 02:37:12 +0200
commit02d7badd15601e52547e2f3e1c594ceede0a0455 (patch)
tree9b4ae3a642231f7a7d3360d5b3858106f6f1c0cd /src/desktop/Rule.cpp
parent0e80ecc5342db04c8c1f807fa6db4c703fb89e3a (diff)
workspaces: refactor class member vars (#10167)
Diffstat (limited to 'src/desktop/Rule.cpp')
-rw-r--r--src/desktop/Rule.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/desktop/Rule.cpp b/src/desktop/Rule.cpp
index aa87a483..93f38de0 100644
--- a/src/desktop/Rule.cpp
+++ b/src/desktop/Rule.cpp
@@ -6,17 +6,17 @@
CRuleRegexContainer::CRuleRegexContainer(const std::string& regex_) {
const bool NEGATIVE = regex_.starts_with("negative:");
- negative = NEGATIVE;
- regex = makeUnique<RE2>(NEGATIVE ? regex_.substr(9) : regex_);
+ m_negative = NEGATIVE;
+ m_regex = makeUnique<RE2>(NEGATIVE ? regex_.substr(9) : regex_);
// TODO: maybe pop an error?
- if (!regex->ok())
+ if (!m_regex->ok())
Debug::log(ERR, "RuleRegexContainer: regex {} failed to parse!", regex_);
}
bool CRuleRegexContainer::passes(const std::string& str) const {
- if (!regex)
+ if (!m_regex)
return false;
- return RE2::FullMatch(str, *regex) != negative;
+ return RE2::FullMatch(str, *m_regex) != m_negative;
} \ No newline at end of file