summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpredicate.h
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-05-22 10:21:28 -0400
committerGitHub <noreply@github.com>2024-05-22 10:21:28 -0400
commitef8f4819822288e044ea719feb6af7a1f4df4c4e (patch)
tree5c1ba76e722d9630fa597023a1e6c196a04f758c /indra/llcommon/llpredicate.h
parent47985e5822ce9fdebb7443e13b3c1a781a842ecd (diff)
parenteb81d5f23fc725f53857d7a62923e273a057c455 (diff)
Merge pull request #1539 from secondlife/nat/kwds
Change `LLPredicate::Rule::requires()` to `mandates()` for C++20.
Diffstat (limited to 'indra/llcommon/llpredicate.h')
-rw-r--r--indra/llcommon/llpredicate.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/llcommon/llpredicate.h b/indra/llcommon/llpredicate.h
index e6c56a5711..205f08421f 100644
--- a/indra/llcommon/llpredicate.h
+++ b/indra/llcommon/llpredicate.h
@@ -139,10 +139,10 @@ namespace LLPredicate
Rule()
{}
- void require(ENUM e, bool match)
- {
- mRule.set(e, match);
- }
+ void mandate(ENUM e, bool match)
+ {
+ mRule.set(e, match);
+ }
void allow(ENUM e)
{
@@ -154,10 +154,10 @@ namespace LLPredicate
return (mRule && value).someSet();
}
- bool requires(const Value<ENUM> value) const
- {
- return (mRule && value).someSet() && (!mRule && value).noneSet();
- }
+ bool mandates(const Value<ENUM> value) const
+ {
+ return (mRule && value).someSet() && (!mRule && value).noneSet();
+ }
bool isAmbivalent(const Value<ENUM> value) const
{