summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/treelist.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/contnr/treelist.cxx')
-rw-r--r--svtools/source/contnr/treelist.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index 8f723f403862..f7d912800b4e 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -93,8 +93,8 @@ void SvTreeList::Broadcast(
void SvTreeList::InsertView( SvListView* pView )
{
- for ( sal_uLong i = 0, n = aViewList.size(); i < n; ++i ) {
- if ( aViewList[ i ] == pView ) {
+ for (SvListView* i : aViewList) {
+ if ( i == pView ) {
return;
}
}