filter/source/graphic/GraphicExportFilter.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
New commits: commit b439971c9f580db43a5cdcce9217ba1b555d5cce Author: Eike Rathke <[email protected]> Date: Fri Sep 22 17:27:42 2017 +0200 Use const reference instead of copy Change-Id: Idf5239e2037dcfa808e016a726f5a980d862ede6 Reviewed-on: https://gerrit.libreoffice.org/42669 Reviewed-by: Eike Rathke <[email protected]> Tested-by: Eike Rathke <[email protected]> diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx index c3b0e6bc751e..5990c2d001c7 100644 --- a/filter/source/graphic/GraphicExportFilter.cxx +++ b/filter/source/graphic/GraphicExportFilter.cxx @@ -43,11 +43,11 @@ void GraphicExportFilter::gatherProperties( const uno::Sequence< beans::Property for ( sal_Int32 i = 0; i < rProperties.getLength(); i++ ) { - beans::PropertyValue aProperty = rProperties[i]; + const beans::PropertyValue& rProperty = rProperties[i]; - if ( aProperty.Name == "FilterName" ) + if ( rProperty.Name == "FilterName" ) { - aProperty.Value >>= aInternalFilterName; + rProperty.Value >>= aInternalFilterName; const sal_Int32 nLen = aInternalFilterName.getLength(); aInternalFilterName = aInternalFilterName.replaceFirst("calc_", ""); if (aInternalFilterName.getLength() == nLen) @@ -59,17 +59,17 @@ void GraphicExportFilter::gatherProperties( const uno::Sequence< beans::Property if (aInternalFilterName.getLength() == nLen) aInternalFilterName = aInternalFilterName.replaceFirst("impress_", ""); } - else if ( aProperty.Name == "FilterData" ) + else if ( rProperty.Name == "FilterData" ) { - aProperty.Value >>= maFilterDataSequence; + rProperty.Value >>= maFilterDataSequence; } - else if ( aProperty.Name == "OutputStream" ) + else if ( rProperty.Name == "OutputStream" ) { - aProperty.Value >>= mxOutputStream; + rProperty.Value >>= mxOutputStream; } - else if ( aProperty.Name == "SelectionOnly" ) + else if ( rProperty.Name == "SelectionOnly" ) { - aProperty.Value >>= mbSelectionOnly; + rProperty.Value >>= mbSelectionOnly; } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
