diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-09-28 08:35:22 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-10-07 18:53:13 +0200 |
commit | c24f5e24e062ba76bc7ad94ee6f362ea1becbf59 (patch) | |
tree | 2a2bc880a2831931e9737c9ad358ddaec1e4b3a9 /svx/source/svdraw | |
parent | fee3bc725bffe4fe6970a3ec5eaf5efdcd53285c (diff) |
svx: defining "i" variable inside "for" statement is good enough
Change-Id: I30c8eb216ecde97451f2c8501424f95fee36d680
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123218
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 3a66fff6b2e2..ee10c54d853e 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -1086,12 +1086,12 @@ bool SdrObjEditView::SdrBeginTextEdit(SdrObject* pObj_, SdrPageView* pPV, vcl::W bTextEditOnlyOneView = bOnlyOneView; bTextEditNewObj = bIsNewObj; const sal_uInt32 nWinCount(PaintWindowCount()); - sal_uInt32 i; + bool bBrk(false); if (!pWin) { - for (i = 0; i < nWinCount && !pWin; i++) + for (sal_uInt32 i = 0; i < nWinCount && !pWin; i++) { SdrPaintWindow* pPaintWindow = GetPaintWindow(i); @@ -1279,7 +1279,7 @@ bool SdrObjEditView::SdrBeginTextEdit(SdrObject* pObj_, SdrPageView* pPV, vcl::W // register all windows as OutlinerViews with the Outliner if (!bOnlyOneView) { - for (i = 0; i < nWinCount; i++) + for (sal_uInt32 i = 0; i < nWinCount; i++) { SdrPaintWindow* pPaintWindow = GetPaintWindow(i); OutputDevice& rOutDev = pPaintWindow->GetOutputDevice(); |