summaryrefslogtreecommitdiff
path: root/svtools/source/brwbox/brwbox2.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/brwbox/brwbox2.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/brwbox/brwbox2.cxx')
-rw-r--r--svtools/source/brwbox/brwbox2.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 32ed1364a788..3625d24af2b4 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -141,11 +141,11 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
pHeaderBar->SetZoom(GetZoom());
// let the columns calculate their new widths and adjust the header bar
- for ( size_t nPos = 0; nPos < pCols->size(); ++nPos )
+ for (BrowserColumn* pCol : *pCols)
{
- (*pCols)[ nPos ]->ZoomChanged(GetZoom());
+ pCol->ZoomChanged(GetZoom());
if ( pHeaderBar )
- pHeaderBar->SetItemSize( (*pCols)[ nPos ]->GetId(), (*pCols)[ nPos ]->Width() );
+ pHeaderBar->SetItemSize( pCol->GetId(), pCol->Width() );
}
// all our controls have to be repositioned
@@ -409,9 +409,9 @@ sal_uInt16 BrowseBox::GetColumnPos( sal_uInt16 nId ) const
bool BrowseBox::IsFrozen( sal_uInt16 nColumnId ) const
{
- for ( size_t nPos = 0; nPos < pCols->size(); ++nPos )
- if ( (*pCols)[ nPos ]->GetId() == nColumnId )
- return (*pCols)[ nPos ]->IsFrozen();
+ for (BrowserColumn* pCol : *pCols)
+ if ( pCol->GetId() == nColumnId )
+ return pCol->IsFrozen();
return false;
}