summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-21 14:45:16 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-30 08:13:30 +0100
commit27415fd0dc397360ceb21aa678b808611d73fc94 (patch)
treeb491c7b231d9fcae608311a4da215220b0128dcc /framework/source/uiconfiguration
parent40043080bc5b51db9614aa06486a520c89b6743b (diff)
Kill some static OUStrings.
Change-Id: Ic06a3b4673446bbadd21f2380c04ec628a6f86a9
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 30ace311deb3..fb7f85867133 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -61,6 +61,10 @@ using namespace com::sun::star::container;
using namespace com::sun::star::beans;
using namespace framework;
+#define RESOURCETYPE_MENUBAR "menubar"
+#define RESOURCETYPE_TOOLBAR "toolbar"
+#define RESOURCETYPE_STATUSBAR "statusbar"
+
namespace {
class ModuleUIConfigurationManager : public cppu::WeakImplHelper3<
@@ -882,11 +886,11 @@ ModuleUIConfigurationManager::ModuleUIConfigurationManager(
{
OUString aResourceType;
if ( i == ::com::sun::star::ui::UIElementType::MENUBAR )
- aResourceType = PresetHandler::RESOURCETYPE_MENUBAR();
+ aResourceType = RESOURCETYPE_MENUBAR;
else if ( i == ::com::sun::star::ui::UIElementType::TOOLBAR )
- aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR();
+ aResourceType = RESOURCETYPE_TOOLBAR;
else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR )
- aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR();
+ aResourceType = RESOURCETYPE_STATUSBAR;
if ( !aResourceType.isEmpty() )
{