diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 08:58:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 09:00:08 +0200 |
commit | c66229bfa4284758b787bf80ddd1b2e3795881df (patch) | |
tree | 322e0e4d0f6d3d575bd8ead750d9b0fffdc68594 /oox/source/export/drawingml.cxx | |
parent | bd8ce8b959f6147a2175a8ce84fd212151ca05dc (diff) |
oox: prefer passing OUString by reference
Change-Id: Iace276878e7ae668bba5bb6e36af1e5d5d72d6cb
Diffstat (limited to 'oox/source/export/drawingml.cxx')
-rw-r--r-- | oox/source/export/drawingml.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 5f869eef95eb..aeeff2587362 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -123,7 +123,7 @@ void DrawingML::ResetCounters() mnImageCounter = 1; } -bool DrawingML::GetProperty( Reference< XPropertySet > rXPropSet, OUString aName ) +bool DrawingML::GetProperty( Reference< XPropertySet > rXPropSet, const OUString& aName ) { bool bRetValue = false; @@ -136,7 +136,7 @@ bool DrawingML::GetProperty( Reference< XPropertySet > rXPropSet, OUString aName return bRetValue; } -bool DrawingML::GetPropertyAndState( Reference< XPropertySet > rXPropSet, Reference< XPropertyState > rXPropState, OUString aName, PropertyState& eState ) +bool DrawingML::GetPropertyAndState( Reference< XPropertySet > rXPropSet, Reference< XPropertyState > rXPropState, const OUString& aName, PropertyState& eState ) { bool bRetValue = false; @@ -180,7 +180,7 @@ void DrawingML::WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha ) } } -void DrawingML::WriteColor( OUString sColorSchemeName, Sequence< PropertyValue > aTransformations ) +void DrawingML::WriteColor( const OUString& sColorSchemeName, Sequence< PropertyValue > aTransformations ) { // prevent writing a tag with empty val attribute if( sColorSchemeName.isEmpty() ) @@ -220,7 +220,7 @@ void DrawingML::WriteSolidFill( sal_uInt32 nColor, sal_Int32 nAlpha ) mpFS->endElementNS( XML_a, XML_solidFill ); } -void DrawingML::WriteSolidFill( OUString sSchemeName, Sequence< PropertyValue > aTransformations ) +void DrawingML::WriteSolidFill( const OUString& sSchemeName, Sequence< PropertyValue > aTransformations ) { mpFS->startElementNS( XML_a, XML_solidFill, FSEND ); WriteColor( sSchemeName, aTransformations ); |