From aeb41c9b9b7559c6d87bf92807acdc0df9e104cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 Oct 2013 17:17:50 +0200 Subject: remove redundant calls to OUString constructor Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6 --- xmloff/source/forms/layerexport.cxx | 2 +- xmloff/source/transform/StyleOASISTContext.cxx | 2 +- xmloff/source/transform/StyleOOoTContext.cxx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx index f8838c3072c4..c9f1a79edbc4 100644 --- a/xmloff/source/forms/layerexport.cxx +++ b/xmloff/source/forms/layerexport.cxx @@ -532,7 +532,7 @@ namespace xmloff if (!sReferencedBy.isEmpty()) // it's not the first _rxObject referring to the xCurrentReference // -> separate the id - sReferencedBy += OUString(","); + sReferencedBy += ","; sReferencedBy += sCurrentId; } } diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index f5ef3fe0f2b7..f529f3ae1c67 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -502,7 +502,7 @@ void XMLPropertiesTContext_Impl::StartElement( { if ( !aNewAttrValue.isEmpty() ) { - aNewAttrValue += OUString(" " ); + aNewAttrValue += " "; } if ( IsXMLToken( aToken, XML_HORIZONTAL_ON_EVEN ) ) diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx index 7543c10f5a06..99f5971e231d 100644 --- a/xmloff/source/transform/StyleOOoTContext.cxx +++ b/xmloff/source/transform/StyleOOoTContext.cxx @@ -910,7 +910,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement( { if ( !aStyleMirrorAttrValue.isEmpty() ) { - aStyleMirrorAttrValue += OUString(" " ); + aStyleMirrorAttrValue += " "; } if ( IsXMLToken( aToken, XML_HORIZONTAL_ON_LEFT_PAGES ) ) @@ -990,7 +990,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement( if( bMoveProtect && -1 == aProtectAttrValue.indexOf( rPosition ) ) { if( !aProtectAttrValue.isEmpty() ) - aProtectAttrValue += OUString( sal_Unicode( ' ' ) ); + aProtectAttrValue += " "; aProtectAttrValue += rPosition; } @@ -998,7 +998,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement( if( bSizeProtect && -1 == aProtectAttrValue.indexOf( rSize ) ) { if( !aProtectAttrValue.isEmpty() ) - aProtectAttrValue += OUString( sal_Unicode( ' ' ) ); + aProtectAttrValue += " "; aProtectAttrValue += rSize; } -- cgit