Kaydet (Commit) fe88fac2 authored tarafından Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez

oox: Use references to prevent unnecessary object copies

Change-Id: I5113bc581a8ac98b97c6598a5355e050c7ad7860
üst 4b4f7e17
...@@ -123,8 +123,8 @@ public: ...@@ -123,8 +123,8 @@ public:
OUString WriteImage( const Graphic &rGraphic , bool bRelPathToMedia = false); OUString WriteImage( const Graphic &rGraphic , bool bRelPathToMedia = false);
void WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha = MAX_PERCENT ); void WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha = MAX_PERCENT );
void WriteColor( const OUString& sColorSchemeName, ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aTransformations ); void WriteColor( const OUString& sColorSchemeName, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aTransformations );
void WriteColorTransformations( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aTransformations ); void WriteColorTransformations( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aTransformations );
void WriteGradientStop( sal_uInt16 nStop, sal_uInt32 nColor ); void WriteGradientStop( sal_uInt16 nStop, sal_uInt32 nColor );
void WriteLineArrow( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet, bool bLineStart ); void WriteLineArrow( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet, bool bLineStart );
void WriteConnectorConnections( EscherConnectorListEntry& rConnectorEntry, sal_Int32 nStartID, sal_Int32 nEndID ); void WriteConnectorConnections( EscherConnectorListEntry& rConnectorEntry, sal_Int32 nStartID, sal_Int32 nEndID );
......
...@@ -181,7 +181,7 @@ void DrawingML::WriteColor( sal_uInt32 nColor, sal_Int32 nAlpha ) ...@@ -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 // prevent writing a tag with empty val attribute
if( sColorSchemeName.isEmpty() ) if( sColorSchemeName.isEmpty() )
...@@ -201,7 +201,7 @@ void DrawingML::WriteColor( const OUString& sColorSchemeName, Sequence< Property ...@@ -201,7 +201,7 @@ void DrawingML::WriteColor( const OUString& sColorSchemeName, Sequence< Property
FSEND ); FSEND );
} }
void DrawingML::WriteColorTransformations( Sequence< PropertyValue > aTransformations ) void DrawingML::WriteColorTransformations( const Sequence< PropertyValue >& aTransformations )
{ {
for( sal_Int32 i = 0; i < aTransformations.getLength(); i++ ) for( sal_Int32 i = 0; i < aTransformations.getLength(); i++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment