From b2096deaff52f462e2df4e7bdc9816bb3604fb08 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 May 2014 14:34:42 +0200 Subject: various loplugin:passsequencebyref Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72 --- ucb/source/ucp/file/filnot.cxx | 3 ++- ucb/source/ucp/file/filnot.hxx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/filnot.cxx b/ucb/source/ucp/file/filnot.cxx index 1f38d42cfb7b..393d85cde6e8 100644 --- a/ucb/source/ucp/file/filnot.cxx +++ b/ucb/source/ucp/file/filnot.cxx @@ -218,9 +218,10 @@ PropertyChangeNotifier::~PropertyChangeNotifier() void PropertyChangeNotifier::notifyPropertyChanged( - uno::Sequence< beans::PropertyChangeEvent > Changes ) + const uno::Sequence< beans::PropertyChangeEvent >& _Changes ) { sal_Int32 j; + uno::Sequence< beans::PropertyChangeEvent > Changes = _Changes; for( j = 0; j < Changes.getLength(); ++j ) Changes[j].Source = m_xCreatorContent; diff --git a/ucb/source/ucp/file/filnot.hxx b/ucb/source/ucp/file/filnot.hxx index dd4f690506c5..0edf0b5719f3 100644 --- a/ucb/source/ucp/file/filnot.hxx +++ b/ucb/source/ucp/file/filnot.hxx @@ -100,7 +100,7 @@ namespace fileaccess { ~PropertyChangeNotifier(); void notifyPropertyChanged( - com::sun::star::uno::Sequence< com::sun::star::beans::PropertyChangeEvent > seqChanged ); + const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyChangeEvent >& seqChanged ); }; -- cgit v1.2.3