diff --git a/repertory/librepertory/src/utils/error_utils.cpp b/repertory/librepertory/src/utils/error_utils.cpp index c504077b..4fb0da99 100644 --- a/repertory/librepertory/src/utils/error_utils.cpp +++ b/repertory/librepertory/src/utils/error_utils.cpp @@ -33,7 +33,7 @@ struct repertory_exception_handler final void handle_debug(std::string_view function_name, std::string_view msg) const override { repertory::event_system::instance().raise( - function_name, msg); + function_name, std::string{msg}); } void handle_error(std::string_view function_name, @@ -53,19 +53,19 @@ struct repertory_exception_handler final void handle_info(std::string_view function_name, std::string_view msg) const override { repertory::event_system::instance().raise( - function_name, msg); + function_name, std::string{msg}); } void handle_trace(std::string_view function_name, std::string_view msg) const override { repertory::event_system::instance().raise( - function_name, msg); + function_name, std::string{msg}); } void handle_warn(std::string_view function_name, std::string_view msg) const override { repertory::event_system::instance().raise( - function_name, msg); + function_name, std::string{msg}); } };