svx/source/svdraw/svdedxv.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit c24f5e24e062ba76bc7ad94ee6f362ea1becbf59 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Tue Sep 28 08:35:22 2021 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Thu Oct 7 18:53:13 2021 +0200 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 <qui...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> 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();