diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-21 12:45:42 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-21 12:45:42 -0400 |
commit | 4215c2d49f3a1154b8525ebe0dafb6ec238cace9 (patch) | |
tree | 4c65f74ee1fa3e98f1051cd4b2cd9be2d530488c | |
parent | dfbbad813f3a1b9a151db7b25d3657590324ca4c (diff) |
Change 'LLPredicate::Rule::requires()' to 'mandates()' for C++20.
Although 'requires' appears in many comments and some string literals, and
'concept' in a few of each, LLPredicate::Rule appears to be the only use of
any new C++20 reserved word in the existing code base. And it seems to be
unreferenced.
-rw-r--r-- | indra/llcommon/llpredicate.h | 16 |
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 { |