summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/filnot.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:21:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 08:11:27 +0200
commita0073744aac89648e89506b79e227b17dacf58d0 (patch)
treed40b1c631884a0ce4428be716f550b12921ab21e /ucb/source/ucp/file/filnot.cxx
parent61e02561aa659d829a6786609fc57d99fd8652b4 (diff)
loplugin:sequenceloop in ucb..unotools
Change-Id: Ie52d993c185ba43386b494baad0a484d5b365499 Reviewed-on: https://gerrit.libreoffice.org/77532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/file/filnot.cxx')
-rw-r--r--ucb/source/ucp/file/filnot.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/filnot.cxx b/ucb/source/ucp/file/filnot.cxx
index 6c199770e59b..ba33e6662bfa 100644
--- a/ucb/source/ucp/file/filnot.cxx
+++ b/ucb/source/ucp/file/filnot.cxx
@@ -220,7 +220,7 @@ void PropertyChangeNotifier::notifyPropertyChanged(
// notify listeners for all Events
uno::Sequence< uno::Reference< uno::XInterface > > seqList = (*m_pListeners)[ OUString() ];
- for( const auto& rListener : seqList )
+ for( const auto& rListener : std::as_const(seqList) )
{
uno::Reference< beans::XPropertiesChangeListener > aListener( rListener,uno::UNO_QUERY );
if( aListener.is() )
@@ -230,12 +230,12 @@ void PropertyChangeNotifier::notifyPropertyChanged(
}
uno::Sequence< beans::PropertyChangeEvent > seq(1);
- for( const auto& rChange : Changes )
+ for( const auto& rChange : std::as_const(Changes) )
{
seq[0] = rChange;
seqList = (*m_pListeners)[ rChange.PropertyName ];
- for( const auto& rListener : seqList )
+ for( const auto& rListener : std::as_const(seqList) )
{
uno::Reference< beans::XPropertiesChangeListener > aListener( rListener,uno::UNO_QUERY );
if( aListener.is() )