[Libreoffice-commits] core.git: cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 26 13:27:51 UTC 2019


 cui/source/customize/SvxNotebookbarConfigPage.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f54a8c6aafac53902b144f5125665644e9a50497
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 25 12:47:28 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Nov 26 14:25:58 2019 +0100

    tdf#126043 don't bother converting to OUString
    
    Change-Id: I179354659e4ee118138b994c7848c1dda39317bb
    Reviewed-on: https://gerrit.libreoffice.org/83678
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx
index ff70cc1ee79e..b74353a95758 100644
--- a/cui/source/customize/SvxNotebookbarConfigPage.cxx
+++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx
@@ -318,10 +318,10 @@ void SvxNotebookbarConfigPage::searchNodeandAttribute(std::vector<NotebookbarEnt
         if (pNodePtr->type == XML_ELEMENT_NODE)
         {
             const char* cNodeName = reinterpret_cast<const char*>(pNodePtr->name);
-            OUString sNodeName = charToString(cNodeName);
-            OUString sSecondVal;
-            if (sNodeName == "object")
+            if (strcmp(cNodeName, "object") == 0)
             {
+                OUString sSecondVal;
+
                 xmlChar* UriValue = xmlGetProp(pNodePtr, reinterpret_cast<const xmlChar*>("id"));
                 const char* cUIItemID = reinterpret_cast<const char*>(UriValue);
                 OUString sUIItemId = charToString(cUIItemID);


More information about the Libreoffice-commits mailing list