diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-25 12:47:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-27 13:32:51 +0100 |
commit | 7e25c7c6fb0574ca6ebd4abc403104fe89f28074 (patch) | |
tree | 51a9f90e5dafd60988dbfe4d1a2fea2de22bc150 /cui/source/customize | |
parent | cea9ac1a30698d280e195cb7a1912b8d45dff91e (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit f54a8c6aafac53902b144f5125665644e9a50497)
Reviewed-on: https://gerrit.libreoffice.org/83865
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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::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); |