diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-23 09:15:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-23 12:38:40 +0200 |
commit | e6c1205e3e041407e875301de08a90989353cf63 (patch) | |
tree | 843c86c21af48443d244c3f1748ca2163be826f3 /vcl | |
parent | fdce0a04bd8b23200631e09979b3880adf754b2a (diff) |
gtk4: fix build
Change-Id: I6bee4180ea2d91a2917765bc1934a8403b72c07e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122513
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk4/convert3to4.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk4/convert3to4.cxx b/vcl/unx/gtk4/convert3to4.cxx index 277eb0cf52fb..d7a881f8f7d5 100644 --- a/vcl/unx/gtk4/convert3to4.cxx +++ b/vcl/unx/gtk4/convert3to4.cxx @@ -23,9 +23,10 @@ typedef std::pair<css::uno::Reference<css::xml::dom::XNode>, OUString> named_nod bool sortButtonNodes(const named_node& rA, const named_node& rB) { + OString sA("/" + rA.second.toUtf8()); + OString sB("/" + rB.second.toUtf8()); //order within groups according to platform rules - return getButtonPriority("/" + rA.second.toUtf8()) - < getButtonPriority("/" + rB.second.toUtf8()); + return getButtonPriority(sA) < getButtonPriority(sB); } // <property name="spacing">6</property> |