diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2025-06-12 18:16:18 +0000 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2025-06-17 00:30:43 +0000 |
commit | 13a36f14c8a5aab2b19352e04ab52d3ce971f927 (patch) | |
tree | ee6bebbeb8564bfb6370a87c87f2ebb32493858c /games/openmw/files/patch-components_widgets_box.cpp | |
parent | 4cf4959a6b36d256e65f5d970a2b173da7aca9af (diff) |
Diffstat (limited to 'games/openmw/files/patch-components_widgets_box.cpp')
-rw-r--r-- | games/openmw/files/patch-components_widgets_box.cpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/games/openmw/files/patch-components_widgets_box.cpp b/games/openmw/files/patch-components_widgets_box.cpp new file mode 100644 index 000000000000..19798e7fc48a --- /dev/null +++ b/games/openmw/files/patch-components_widgets_box.cpp @@ -0,0 +1,65 @@ +--- components/widgets/box.cpp.orig 2023-08-08 09:23:20 UTC ++++ components/widgets/box.cpp +@@ -7,7 +7,7 @@ namespace Gui + { + // TODO: Since 3.4.2 MyGUI is supposed to automatically translate tags + // If the 3.4.2 become a required minimum version, the ComboBox class may be removed. +- void ComboBox::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void ComboBox::setPropertyOverride(std::string_view _key, std::string_view _value) + { + #if MYGUI_VERSION >= MYGUI_DEFINE_VERSION(3,4,2) + MyGUI::ComboBox::setPropertyOverride (_key, _value); +@@ -61,7 +61,7 @@ namespace Gui + notifySizeChange (this); + } + +- void AutoSizedTextBox::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void AutoSizedTextBox::setPropertyOverride(std::string_view _key, std::string_view _value) + { + if (_key == "ExpandDirection") + { +@@ -123,7 +123,7 @@ namespace Gui + setEditStatic(true); + } + +- void AutoSizedEditBox::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void AutoSizedEditBox::setPropertyOverride(std::string_view _key, std::string_view _value) + { + if (_key == "ExpandDirection") + { +@@ -156,7 +156,7 @@ namespace Gui + notifySizeChange (this); + } + +- void AutoSizedButton::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void AutoSizedButton::setPropertyOverride(std::string_view _key, std::string_view _value) + { + if (_key == "ExpandDirection") + { +@@ -179,7 +179,7 @@ namespace Gui + align(); + } + +- bool Box::_setPropertyImpl(const std::string& _key, const std::string& _value) ++ bool Box::_setPropertyImpl(std::string_view _key, std::string_view _value) + { + if (_key == "Spacing") + mSpacing = MyGUI::utility::parseValue<int>(_value); +@@ -278,7 +278,7 @@ namespace Gui + } + } + +- void HBox::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void HBox::setPropertyOverride(std::string_view _key, std::string_view _value) + { + if (!Box::_setPropertyImpl (_key, _value)) + MyGUI::Widget::setPropertyOverride(_key, _value); +@@ -433,7 +433,7 @@ namespace Gui + } + } + +- void VBox::setPropertyOverride(const std::string& _key, const std::string& _value) ++ void VBox::setPropertyOverride(std::string_view _key, std::string_view _value) + { + if (!Box::_setPropertyImpl (_key, _value)) + MyGUI::Widget::setPropertyOverride(_key, _value); |