From 7e25c7c6fb0574ca6ebd4abc403104fe89f28074 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 Nov 2019 12:47:28 +0000 Subject: tdf#126043 don't bother converting to OUString MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I179354659e4ee118138b994c7848c1dda39317bb Reviewed-on: https://gerrit.libreoffice.org/83678 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara (cherry picked from commit f54a8c6aafac53902b144f5125665644e9a50497) Reviewed-on: https://gerrit.libreoffice.org/83865 --- cui/source/customize/SvxNotebookbarConfigPage.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index db450f5e78c4..70c9c5e10510 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -318,10 +318,10 @@ void SvxNotebookbarConfigPage::searchNodeandAttribute(std::vectortype == XML_ELEMENT_NODE) { const char* cNodeName = reinterpret_cast(pNodePtr->name); - OUString sNodeName = charToString(cNodeName); - OUString sSecondVal; - if (sNodeName == "object") + if (strcmp(cNodeName, "object") == 0) { + OUString sSecondVal; + xmlChar* UriValue = xmlGetProp(pNodePtr, reinterpret_cast("id")); const char* cUIItemID = reinterpret_cast(UriValue); OUString sUIItemId = charToString(cUIItemID); -- cgit