From d7304c49a1d2cea2dae0ae38fdd9706dbcdb561f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Dec 2023 00:11:26 -0800 Subject: Pass the effect props directly to the eax committer functions Rather than the variant that was already checked for what it's holding. --- al/effects/null.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'al/effects/null.cpp') 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(mEaxProps)}; mEaxProps = props; return ret; } @@ -129,13 +129,13 @@ void EaxNullCommitter::SetDefaults(EaxEffectProps &props) props.emplace(); } -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(); -- cgit v1.2.3