From 8e0918a04ee6797909264943eba23707b224c34c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Aug 2019 13:35:20 +0200 Subject: loplugin:sequenceloop in shell..sot Change-Id: I40e2a1be0ce7df627d3820192d24821ddd7c3e2f Reviewed-on: https://gerrit.libreoffice.org/77527 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/ucbstorage.cxx | 2 +- sot/source/unoolestorage/xolesimplestorage.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 0aa9fff0b3c9..1b3bd3381e8a 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1941,7 +1941,7 @@ bool UCBStorage_Impl::Insert( ::ucbhelper::Content *pContent ) try { - Sequence< ContentInfo > aInfo = pContent->queryCreatableContentsInfo(); + const Sequence< ContentInfo > aInfo = pContent->queryCreatableContentsInfo(); if ( !aInfo.hasElements() ) return false; diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index 82d7f8bbb7a5..5a7f561b0a22 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -236,7 +236,7 @@ void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, co try { - uno::Sequence< OUString > aElements = xNameAccess->getElementNames(); + const uno::Sequence< OUString > aElements = xNameAccess->getElementNames(); for ( const auto& rElement : aElements ) { uno::Reference< io::XInputStream > xInputStream; -- cgit