diff --git a/games/openmw/files/patch-components_myguiplatform_myguiloglistener.cpp b/games/openmw/files/patch-components_myguiplatform_myguiloglistener.cpp index 939b73380527..dcc078307c8d 100644 --- a/games/openmw/files/patch-components_myguiplatform_myguiloglistener.cpp +++ b/games/openmw/files/patch-components_myguiplatform_myguiloglistener.cpp @@ -1,11 +1,11 @@ --- components/myguiplatform/myguiloglistener.cpp.orig 2023-08-08 09:23:20 UTC +++ components/myguiplatform/myguiloglistener.cpp -@@ -25,7 +25,7 @@ namespace osgMyGUI - mStream.flush(); - } - -- void CustomLogListener::log(const std::string& _section, MyGUI::LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line) -+ void CustomLogListener::log(std::string_view _section, MyGUI::LogLevel _level, const struct tm* _time, std::string_view _message, std::string_view _file, int _line) - { - if (mStream.is_open()) - { +@@ -25,7 +25,7 @@ namespace osgMyGUI + mStream.flush(); + } + +- void CustomLogListener::log(const std::string& _section, MyGUI::LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line) ++ void CustomLogListener::log(std::string_view _section, MyGUI::LogLevel _level, const struct tm* _time, std::string_view _message, std::string_view _file, int _line) + { + if (mStream.is_open()) + { diff --git a/games/openmw/files/patch-components_myguiplatform_myguiloglistener.hpp b/games/openmw/files/patch-components_myguiplatform_myguiloglistener.hpp index 635c624f0140..acf183aec108 100644 --- a/games/openmw/files/patch-components_myguiplatform_myguiloglistener.hpp +++ b/games/openmw/files/patch-components_myguiplatform_myguiloglistener.hpp @@ -1,11 +1,11 @@ --- components/myguiplatform/myguiloglistener.hpp.orig 2023-08-08 09:23:20 UTC +++ components/myguiplatform/myguiloglistener.hpp -@@ -28,7 +28,7 @@ namespace osgMyGUI - void close() override; - void flush() override; - -- void log(const std::string& _section, MyGUI::LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line) override; -+ void log(std::string_view _section, MyGUI::LogLevel _level, const struct tm* _time, std::string_view _message, std::string_view _file, int _line) override; - - const std::string& getFileName() const { return mFileName; } - +@@ -28,7 +28,7 @@ namespace osgMyGUI + void close() override; + void flush() override; + +- void log(const std::string& _section, MyGUI::LogLevel _level, const struct tm* _time, const std::string& _message, const char* _file, int _line) override; ++ void log(std::string_view _section, MyGUI::LogLevel _level, const struct tm* _time, std::string_view _message, std::string_view _file, int _line) override; + + const std::string& getFileName() const { return mFileName; } +