diff options
Diffstat (limited to 'cui/source/customize/SvxNotebookbarConfigPage.cxx')
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index af5bed877aef..cd654fa717c8 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -435,12 +435,10 @@ void SvxNotebookbarConfigPage::FillFunctionsList(std::vector<NotebookbarEntries> std::vector<CategoriesEntries>& aCategoryList, OUString& sActiveCategory) { - xmlDocPtr pDoc; - xmlNodePtr pNodePtr; - OUString sUIFilePath = CustomNotebookbarGenerator::getCustomizedUIPath(); - char* cUIFileUIPath = CustomNotebookbarGenerator::convertToCharPointer(sUIFilePath); - pDoc = xmlParseFile(cUIFileUIPath); - pNodePtr = xmlDocGetRootElement(pDoc); + OString sUIFileUIPath = CustomNotebookbarGenerator::getSystemPath( + CustomNotebookbarGenerator::getCustomizedUIPath()); + xmlDocPtr pDoc = xmlParseFile(sUIFileUIPath.getStr()); + xmlNodePtr pNodePtr = xmlDocGetRootElement(pDoc); CategoriesEntries aCurItemEntry; searchNodeandAttribute(aEntries, aCategoryList, sActiveCategory, aCurItemEntry, pNodePtr, @@ -449,7 +447,6 @@ void SvxNotebookbarConfigPage::FillFunctionsList(std::vector<NotebookbarEntries> { xmlFreeDoc(pDoc); } - delete[] cUIFileUIPath; } void SvxNotebookbarConfigPage::SelectElement() |