summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/foldertree.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-10 14:39:07 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-11 06:54:34 +0000
commit265068d65b39688b8a4756dfbcd46453dd1f9b70 (patch)
tree6936185b2f2f46b99646d00e542cdde845ef073d /svtools/source/contnr/foldertree.cxx
parent9e0335d1db22bd3ad3f4bb249b30a00fd55558f4 (diff)
clang-tidy modernize-loop-convert in scripting to svtools
Change-Id: I98229d14109cf243839d632feabde1391ea9bad5 Reviewed-on: https://gerrit.libreoffice.org/24847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/contnr/foldertree.cxx')
-rw-r--r--svtools/source/contnr/foldertree.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/contnr/foldertree.cxx b/svtools/source/contnr/foldertree.cxx
index d5732e20dc3d..40ed9d538544 100644
--- a/svtools/source/contnr/foldertree.cxx
+++ b/svtools/source/contnr/foldertree.cxx
@@ -63,13 +63,13 @@ void FolderTree::FillTreeEntry( SvTreeListEntry* pEntry )
if ( SUCCESS == eResult )
{
- for( std::vector<SortingData_Impl *>::size_type i = 0; i < aContent.size(); i++ )
+ for(SortingData_Impl* i : aContent)
{
- if( aContent[i]->mbIsFolder )
+ if( i->mbIsFolder )
{
- SvTreeListEntry* pNewEntry = InsertEntry( aContent[i]->GetTitle(), pEntry, true );
+ SvTreeListEntry* pNewEntry = InsertEntry( i->GetTitle(), pEntry, true );
- OUString* sData = new OUString( aContent[i]->maTargetURL );
+ OUString* sData = new OUString( i->maTargetURL );
pNewEntry->SetUserData( static_cast< void* >( sData ) );
}
}