summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-08-08 03:55:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-08-08 04:41:20 +0000
commit97cae1350fc83f8aed56e008d0ae08b669bd2933 (patch)
treea9dabb78b4b75347f65d69878dceb7363cc252e1 /sfx2
parentb0f4291e5c0fe6d61d621e692cbc8bea4cb4c401 (diff)
reduce scope of variable
Change-Id: I42fc09957f243c89a0c45309b92a91cf3c2692b1 Reviewed-on: https://gerrit.libreoffice.org/27944 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/workwin.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index a40d92189423..c2c50c309b28 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -606,8 +606,7 @@ void SfxWorkWindow::DeleteControllers_Impl()
// Lock SplitWindows (which means suppressing the Resize-Reaction of the
// DockingWindows)
- sal_uInt16 n;
- for ( n=0; n<SFX_SPLITWINDOWS_MAX; n++ )
+ for (size_t n=0; n<SFX_SPLITWINDOWS_MAX; n++ )
{
SfxSplitWindow *p = pSplit[n];
if (p->GetWindowCount())
@@ -615,7 +614,7 @@ void SfxWorkWindow::DeleteControllers_Impl()
}
// Delete Child-Windows
- for ( n=0; n<aChildWins.size(); )
+ for (size_t n=0; n<aChildWins.size(); )
{
SfxChildWin_Impl* pCW = aChildWins[n];
aChildWins.erase(aChildWins.begin());