[Libreoffice-commits] core.git: sfx2/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Aug 8 04:41:54 UTC 2016
sfx2/source/appl/workwin.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 97cae1350fc83f8aed56e008d0ae08b669bd2933
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Aug 8 03:55:18 2016 +0200
reduce scope of variable
Change-Id: I42fc09957f243c89a0c45309b92a91cf3c2692b1
Reviewed-on: https://gerrit.libreoffice.org/27944
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index a40d921..c2c50c3 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());
More information about the Libreoffice-commits
mailing list