diff options
author | Chris Robinson <[email protected]> | 2023-08-26 00:57:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-08-26 00:57:11 -0700 |
commit | 8a94d286a585d84e57bdc8ca99a081a8a572e629 (patch) | |
tree | 9476d4755588f7dfe4003114e2b05c16c30f3e17 | |
parent | ee62638a0c1033b858de28c7cb1f9365d7cb1c56 (diff) |
Replace another C string with string_view
-rw-r--r-- | al/eax/utils.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/al/eax/utils.h b/al/eax/utils.h index e5581bd6..8e0f975f 100644 --- a/al/eax/utils.h +++ b/al/eax/utils.h @@ -7,6 +7,8 @@ #include <string_view> #include <type_traits> +#include "opthelpers.h" + using EaxDirtyFlags = unsigned int; struct EaxAlLowPassParam { @@ -17,13 +19,10 @@ struct EaxAlLowPassParam { void eax_log_exception(std::string_view message) noexcept; template<typename TException, typename TValue> -void eax_validate_range( - const char* value_name, - const TValue& value, - const TValue& min_value, +void eax_validate_range(std::string_view value_name, const TValue& value, const TValue& min_value, const TValue& max_value) { - if (value >= min_value && value <= max_value) + if(value >= min_value && value <= max_value) LIKELY return; const auto message = |