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-26 14:25:58 +0100 |
commit | f54a8c6aafac53902b144f5125665644e9a50497 (patch) | |
tree | d8270c9f1d32f3cb23b21cc19304a16abdd00a68 /cui | |
parent | b8cbe67fa4c9fe63ff54e408cd64d885d4c21331 (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>
Diffstat (limited to 'cui')
-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 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); |