summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
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 /svx/source/xoutdev
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 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattr.cxx12
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx9
2 files changed, 10 insertions, 11 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index acb51e8ecedf..23fd6de0beb0 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -792,9 +792,9 @@ bool XLineDashItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 nMem
aLineDash.Distance = rXD.GetDistance();
OUString aApiName = SvxUnogetApiNameForItem(Which(), GetName());
- aPropSeq[0].Name = OUString( "Name" );
+ aPropSeq[0].Name = "Name";
aPropSeq[0].Value = uno::makeAny( aApiName );
- aPropSeq[1].Name = OUString( "LineDash" );
+ aPropSeq[1].Name = "LineDash";
aPropSeq[1].Value = uno::makeAny( aLineDash );
rVal = uno::makeAny( aPropSeq );
break;
@@ -2712,9 +2712,9 @@ bool XFillGradientItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8
aGradient2.StepCount = aXGradient.GetSteps();
OUString aApiName = SvxUnogetApiNameForItem(Which(), GetName());
- aPropSeq[0].Name = OUString( "Name" );
+ aPropSeq[0].Name = "Name";
aPropSeq[0].Value = uno::makeAny( aApiName );
- aPropSeq[1].Name = OUString( "FillGradient" );
+ aPropSeq[1].Name = "FillGradient";
aPropSeq[1].Value = uno::makeAny( aGradient2 );
rVal = uno::makeAny( aPropSeq );
break;
@@ -3197,9 +3197,9 @@ bool XFillHatchItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 nMe
aUnoHatch.Angle = aHatch.GetAngle();
OUString aApiName = SvxUnogetApiNameForItem(Which(), GetName());
- aPropSeq[0].Name = OUString( "Name" );
+ aPropSeq[0].Name = "Name";
aPropSeq[0].Value = uno::makeAny( aApiName );
- aPropSeq[1].Name = OUString( "FillHatch" );
+ aPropSeq[1].Name = "FillHatch";
aPropSeq[1].Value = uno::makeAny( aUnoHatch );
rVal = uno::makeAny( aPropSeq );
break;
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index e98c4d5bbbea..f8c53d795217 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -430,8 +430,7 @@ bool XFillBitmapItem::QueryValue(::com::sun::star::uno::Any& rVal, sal_uInt8 nMe
if( nMemberId == MID_GRAFURL ||
nMemberId == 0 )
{
- aURL = OUString(
- UNO_NAME_GRAPHOBJ_URLPREFIX);
+ aURL = UNO_NAME_GRAPHOBJ_URLPREFIX;
aURL += OStringToOUString(
GetGraphicObject().GetUniqueID(),
RTL_TEXTENCODING_ASCII_US);
@@ -454,11 +453,11 @@ bool XFillBitmapItem::QueryValue(::com::sun::star::uno::Any& rVal, sal_uInt8 nMe
DBG_ASSERT( nMemberId == 0, "invalid member-id" );
uno::Sequence< beans::PropertyValue > aPropSeq( 3 );
- aPropSeq[0].Name = OUString( "Name" );
+ aPropSeq[0].Name = "Name";
aPropSeq[0].Value = uno::makeAny( aInternalName );
- aPropSeq[1].Name = OUString( "FillBitmapURL" );
+ aPropSeq[1].Name = "FillBitmapURL";
aPropSeq[1].Value = uno::makeAny( aURL );
- aPropSeq[2].Name = OUString( "Bitmap" );
+ aPropSeq[2].Name = "Bitmap";
aPropSeq[2].Value = uno::makeAny( xBmp );
rVal <<= aPropSeq;