summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-09-22 17:27:42 +0200
committerEike Rathke <erack@redhat.com>2017-09-22 23:06:16 +0200
commitb439971c9f580db43a5cdcce9217ba1b555d5cce (patch)
tree06ec19b00208213892fdf36e750e48a5e9d0c2cf /filter
parent4e1d53b40605aaecd90753b9798d7210641b409c (diff)
Use const reference instead of copy
Change-Id: Idf5239e2037dcfa808e016a726f5a980d862ede6 Reviewed-on: https://gerrit.libreoffice.org/42669 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphic/GraphicExportFilter.cxx18
1 files changed, 9 insertions, 9 deletions
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;
}
}