summaryrefslogtreecommitdiff
path: root/framework/source/uifactory
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-15 11:05:19 +0200
committerNoel Grandin <noel@peralex.com>2013-11-19 10:29:31 +0200
commit610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch)
tree6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /framework/source/uifactory
parent2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff)
remove unnecessary use of OUString constructor when assigning
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'framework/source/uifactory')
-rw-r--r--framework/source/uifactory/addonstoolboxfactory.cxx6
-rw-r--r--framework/source/uifactory/factoryconfiguration.cxx2
-rw-r--r--framework/source/uifactory/menubarfactory.cxx8
-rw-r--r--framework/source/uifactory/uicontrollerfactory.cxx2
-rw-r--r--framework/source/uifactory/uielementfactorymanager.cxx2
5 files changed, 10 insertions, 10 deletions
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;