From 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Nov 2013 11:05:19 +0200 Subject: remove unnecessary use of OUString constructor when assigning change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4 --- framework/source/uifactory/addonstoolboxfactory.cxx | 6 +++--- framework/source/uifactory/factoryconfiguration.cxx | 2 +- framework/source/uifactory/menubarfactory.cxx | 8 ++++---- framework/source/uifactory/uicontrollerfactory.cxx | 2 +- framework/source/uifactory/uielementfactorymanager.cxx | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'framework/source/uifactory') diff --git a/framework/source/uifactory/addonstoolboxfactory.cxx b/framework/source/uifactory/addonstoolboxfactory.cxx index 990f32d06d62..1a7822b58364 100644 --- a/framework/source/uifactory/addonstoolboxfactory.cxx +++ b/framework/source/uifactory/addonstoolboxfactory.cxx @@ -175,13 +175,13 @@ throw ( ::com::sun::star::container::NoSuchElementException, { PropertyValue aPropValue; Sequence< Any > aPropSeq( 3 ); - aPropValue.Name = OUString( "Frame" ); + aPropValue.Name = "Frame"; aPropValue.Value <<= xFrame; aPropSeq[0] <<= aPropValue; - aPropValue.Name = OUString( "ConfigurationData" ); + aPropValue.Name = "ConfigurationData"; aPropValue.Value <<= aConfigData; aPropSeq[1] <<= aPropValue; - aPropValue.Name = OUString( "ResourceURL" ); + aPropValue.Name = "ResourceURL"; aPropValue.Value <<= aResourceURL; aPropSeq[2] <<= aPropValue; diff --git a/framework/source/uifactory/factoryconfiguration.cxx b/framework/source/uifactory/factoryconfiguration.cxx index 4dddf510e7c5..dd61fa55ef7b 100644 --- a/framework/source/uifactory/factoryconfiguration.cxx +++ b/framework/source/uifactory/factoryconfiguration.cxx @@ -211,7 +211,7 @@ void ConfigurationAccess_ControllerFactory::readConfigurationData() Sequence< Any > aArgs( 1 ); PropertyValue aPropValue; - aPropValue.Name = OUString( "nodepath" ); + aPropValue.Name = "nodepath"; aPropValue.Value <<= m_sRoot; aArgs[0] <<= aPropValue; diff --git a/framework/source/uifactory/menubarfactory.cxx b/framework/source/uifactory/menubarfactory.cxx index be4ec8943223..cbda3ce4d6fc 100644 --- a/framework/source/uifactory/menubarfactory.cxx +++ b/framework/source/uifactory/menubarfactory.cxx @@ -159,16 +159,16 @@ void MenuBarFactory::CreateUIElement(const OUString& ResourceURL PropertyValue aPropValue; Sequence< Any > aPropSeq( _pExtraMode ? 5 : 4); - aPropValue.Name = OUString( "Frame" ); + aPropValue.Name = "Frame"; aPropValue.Value <<= xFrame; aPropSeq[0] <<= aPropValue; - aPropValue.Name = OUString( "ConfigurationSource" ); + aPropValue.Name = "ConfigurationSource"; aPropValue.Value <<= xCfgMgr; aPropSeq[1] <<= aPropValue; - aPropValue.Name = OUString( "ResourceURL" ); + aPropValue.Name = "ResourceURL"; aPropValue.Value <<= aResourceURL; aPropSeq[2] <<= aPropValue; - aPropValue.Name = OUString( "Persistent" ); + aPropValue.Name = "Persistent"; aPropValue.Value <<= bPersistent; aPropSeq[3] <<= aPropValue; if ( _pExtraMode ) diff --git a/framework/source/uifactory/uicontrollerfactory.cxx b/framework/source/uifactory/uicontrollerfactory.cxx index 0eedfa73f40d..2303bebf89e4 100644 --- a/framework/source/uifactory/uicontrollerfactory.cxx +++ b/framework/source/uifactory/uicontrollerfactory.cxx @@ -120,7 +120,7 @@ throw (Exception, RuntimeException) // Append the command URL to the Arguments sequence so that one controller can be // used for more than one command URL. - aPropValue.Name = OUString( "CommandURL" ); + aPropValue.Name = "CommandURL"; aPropValue.Value <<= ServiceSpecifier; aNewArgs[nAppendIndex] <<= aPropValue; diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx index 1c203db3bcaf..d1dd274e3501 100644 --- a/framework/source/uifactory/uielementfactorymanager.cxx +++ b/framework/source/uifactory/uielementfactorymanager.cxx @@ -282,7 +282,7 @@ void ConfigurationAccess_FactoryManager::readConfigurationData() Sequence< Any > aArgs( 1 ); PropertyValue aPropValue; - aPropValue.Name = OUString( "nodepath" ); + aPropValue.Name = "nodepath"; aPropValue.Value <<= m_sRoot; aArgs[0] <<= aPropValue; -- cgit