summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-05-12 19:18:05 +0200
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-05-13 10:28:55 +0200
commitfe88fac28afac3ec0b837c1e2e38d9f8cf152080 (patch)
treee96aa8caa4f2cae91b8d786dd01f00be3a99fd39 /oox
parent4b4f7e17ad5571482111f1574f7e4b313531cfde (diff)
oox: Use references to prevent unnecessary object copies
Change-Id: I5113bc581a8ac98b97c6598a5355e050c7ad7860
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 99deb828904d..eff1d2bc6efd 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -181,7 +181,7 @@ void DrawingML::WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha )
}
}
-void DrawingML::WriteColor( const OUString& sColorSchemeName, Sequence< PropertyValue > aTransformations )
+void DrawingML::WriteColor( const OUString& sColorSchemeName, const Sequence< PropertyValue >& aTransformations )
{
// prevent writing a tag with empty val attribute
if( sColorSchemeName.isEmpty() )
@@ -201,7 +201,7 @@ void DrawingML::WriteColor( const OUString& sColorSchemeName, Sequence< Property
FSEND );
}
-void DrawingML::WriteColorTransformations( Sequence< PropertyValue > aTransformations )
+void DrawingML::WriteColorTransformations( const Sequence< PropertyValue >& aTransformations )
{
for( sal_Int32 i = 0; i < aTransformations.getLength(); i++ )
{