diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 11:40:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 13:15:50 +0200 |
commit | cf3fb54debffeab546085e648c73c576343be9f4 (patch) | |
tree | adc4bbd98fcbb86cb7b26823a5649abf508ef5a0 /fpicker | |
parent | fe00a724a918606e5c8c2c32b155bc50b33d56bd (diff) |
loplugin:sequenceloop in forms..oox
Change-Id: Id742001211e916e7709918e7112902a0c35bac95
Reviewed-on: https://gerrit.libreoffice.org/77501
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/OfficeControlAccess.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/fpsmartcontent.cxx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx index 723d8d3268c5..29336e09b75e 100644 --- a/fpicker/source/office/OfficeControlAccess.cxx +++ b/fpicker/source/office/OfficeControlAccess.cxx @@ -616,7 +616,7 @@ namespace svt static_cast< ListBox* >( _pControl )->Clear(); // add the new ones - for ( auto const & item : aItems ) + for ( auto const & item : std::as_const(aItems) ) { static_cast< ListBox* >( _pControl )->InsertEntry( item ); } diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx index 53b3a8b3d291..0f65ac68d1b8 100644 --- a/fpicker/source/office/fpsmartcontent.cxx +++ b/fpicker/source/office/fpsmartcontent.cxx @@ -263,7 +263,8 @@ namespace svt bool bRet = false; try { - for ( auto const& rInfo : m_pContent->queryCreatableContentsInfo() ) + const css::uno::Sequence<css::ucb::ContentInfo> aContentsInfo = m_pContent->queryCreatableContentsInfo(); + for ( auto const& rInfo : aContentsInfo ) { // Simply look for the first KIND_FOLDER... if ( rInfo.Attributes & ContentInfoAttribute::KIND_FOLDER ) @@ -291,7 +292,8 @@ namespace svt { OUString sFolderType; - for ( auto const& rInfo : m_pContent->queryCreatableContentsInfo() ) + const css::uno::Sequence<css::ucb::ContentInfo> aContentsInfo = m_pContent->queryCreatableContentsInfo(); + for ( auto const& rInfo : aContentsInfo ) { // Simply look for the first KIND_FOLDER... if ( rInfo.Attributes & ContentInfoAttribute::KIND_FOLDER ) |