From e6c1205e3e041407e875301de08a90989353cf63 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 23 Sep 2021 09:15:59 +0100 Subject: gtk4: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6bee4180ea2d91a2917765bc1934a8403b72c07e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122513 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/gtk4/convert3to4.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vcl') 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, 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); } // 6 -- cgit