summaryrefslogtreecommitdiff
path: root/.github/workflows/pre-commit.yaml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-26 10:30:40 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-26 10:30:40 -0400
commit6ac59d1d5e200cccd3ddaa6d1c3b0d8d116a06be (patch)
treec07c22bdabbd6a2a979f581429448284cbd59a19 /.github/workflows/pre-commit.yaml
parent6400284278071b774d2837d62142a15b94120198 (diff)
Fix GCC ambiguous-reversed-operator errors for `LLKeyData` compares.
`LLKeyData::operator==(const LLKeyData&)` and `operator!=(const LLKeyData&)` were not themselves `const` methods. In C++20, that can produce a fatal warning that if the compare operands were reversed, you'd get different results. Making them both `const` should fix it. While touching the method definitions, make `operator==()` more intuitive, and make `operator!=()` simply negate `operator==()` instead of restating it in reverse.
Diffstat (limited to '.github/workflows/pre-commit.yaml')
0 files changed, 0 insertions, 0 deletions