summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-23 09:15:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-23 12:38:40 +0200
commite6c1205e3e041407e875301de08a90989353cf63 (patch)
tree843c86c21af48443d244c3f1748ca2163be826f3 /vcl
parentfdce0a04bd8b23200631e09979b3880adf754b2a (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.cxx5
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>