diff options
Diffstat (limited to 'games/openmw/files/patch-components_widgets_fontwrapper.hpp')
-rw-r--r-- | games/openmw/files/patch-components_widgets_fontwrapper.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/openmw/files/patch-components_widgets_fontwrapper.hpp b/games/openmw/files/patch-components_widgets_fontwrapper.hpp new file mode 100644 index 000000000000..de1f6dae96db --- /dev/null +++ b/games/openmw/files/patch-components_widgets_fontwrapper.hpp @@ -0,0 +1,20 @@ +--- components/widgets/fontwrapper.hpp.orig 2023-08-08 09:23:20 UTC ++++ components/widgets/fontwrapper.hpp +@@ -11,14 +11,14 @@ namespace Gui + class FontWrapper : public T + { + public: +- void setFontName(const std::string& name) override ++ void setFontName(std::string_view _value) override + { +- T::setFontName(name); ++ T::setFontName(_value); + T::setPropertyOverride ("FontHeight", getFontSize()); + } + + protected: +- void setPropertyOverride(const std::string& _key, const std::string& _value) override ++ void setPropertyOverride(std::string_view _key, std::string_view _value) override + { + T::setPropertyOverride (_key, _value); + |