diff options
author | Chris Robinson <[email protected]> | 2023-12-23 00:11:26 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-23 00:11:26 -0800 |
commit | d7304c49a1d2cea2dae0ae38fdd9706dbcdb561f (patch) | |
tree | 251aede4876ca8d143fb1d1e6aedb4e3cc4f2818 /al/effects/null.cpp | |
parent | c253a4353227be00ecd7995b8c7443ebfcd6d5a9 (diff) |
Pass the effect props directly to the eax committer functions
Rather than the variant that was already checked for what it's holding.
Diffstat (limited to 'al/effects/null.cpp')
-rw-r--r-- | al/effects/null.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/al/effects/null.cpp b/al/effects/null.cpp index 5d8e717e..4b68a28f 100644 --- a/al/effects/null.cpp +++ b/al/effects/null.cpp @@ -117,9 +117,9 @@ template<> throw Exception{message}; } -bool EaxNullCommitter::commit(const EaxEffectProps &props) +bool EaxNullCommitter::commit(const std::monostate &props) { - const bool ret{props != mEaxProps}; + const bool ret{std::holds_alternative<std::monostate>(mEaxProps)}; mEaxProps = props; return ret; } @@ -129,13 +129,13 @@ void EaxNullCommitter::SetDefaults(EaxEffectProps &props) props.emplace<std::monostate>(); } -void EaxNullCommitter::Get(const EaxCall &call, const EaxEffectProps&) +void EaxNullCommitter::Get(const EaxCall &call, const std::monostate&) { if(call.get_property_id() != 0) fail_unknown_property_id(); } -void EaxNullCommitter::Set(const EaxCall &call, EaxEffectProps&) +void EaxNullCommitter::Set(const EaxCall &call, std::monostate&) { if(call.get_property_id() != 0) fail_unknown_property_id(); |