summaryrefslogtreecommitdiff
path: root/fpicker/source/office/fpsmartcontent.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 11:40:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 13:15:50 +0200
commitcf3fb54debffeab546085e648c73c576343be9f4 (patch)
treeadc4bbd98fcbb86cb7b26823a5649abf508ef5a0 /fpicker/source/office/fpsmartcontent.cxx
parentfe00a724a918606e5c8c2c32b155bc50b33d56bd (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/source/office/fpsmartcontent.cxx')
-rw-r--r--fpicker/source/office/fpsmartcontent.cxx6
1 files changed, 4 insertions, 2 deletions
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 )