diff options
author | Chris Robinson <[email protected]> | 2023-08-25 14:52:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-08-25 14:52:09 -0700 |
commit | f1a67347a6cf4b6d397fe1220b999ed7161c7097 (patch) | |
tree | da48b7cd24ef0622e6c47f4bb368ac21bb71d776 /al/eax/exception.h | |
parent | ca3bc1bd80fdff511e83d563a4ee94d6cd885473 (diff) |
Use string_view in a couple more places
Diffstat (limited to 'al/eax/exception.h')
-rw-r--r-- | al/eax/exception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/al/eax/exception.h b/al/eax/exception.h index 3ae88cdc..336654f0 100644 --- a/al/eax/exception.h +++ b/al/eax/exception.h @@ -1,16 +1,16 @@ #ifndef EAX_EXCEPTION_INCLUDED #define EAX_EXCEPTION_INCLUDED - #include <stdexcept> #include <string> +#include <string_view> class EaxException : public std::runtime_error { - static std::string make_message(const char *context, const char *message); + static std::string make_message(std::string_view context, std::string_view message); public: - EaxException(const char *context, const char *message); + EaxException(std::string_view context, std::string_view message); ~EaxException() override; }; // EaxException |