summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ResourceManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/ResourceManager.cxx')
-rw-r--r--sfx2/source/sidebar/ResourceManager.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index eb169ee43c0f..e1e011422da7 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -714,12 +714,10 @@ utl::OConfigurationTreeRoot ResourceManager::GetLegacyAddonRootNode (const OUStr
"ooSetupFactoryWindowStateConfigRef",
OUString()));
- OUStringBuffer aPathComposer;
- aPathComposer.append("org.openoffice.Office.UI.");
- aPathComposer.append(sWindowStateRef);
- aPathComposer.append("/UIElements/States");
+ OUString aPathComposer = "org.openoffice.Office.UI." + sWindowStateRef +
+ "/UIElements/States";
- return utl::OConfigurationTreeRoot(xContext, aPathComposer.makeStringAndClear(), false);
+ return utl::OConfigurationTreeRoot(xContext, aPathComposer, false);
}
catch (const Exception&)
{