[Libreoffice-commits] core.git: svx/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 7 16:53:49 UTC 2021
svx/source/svdraw/svdedxv.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c24f5e24e062ba76bc7ad94ee6f362ea1becbf59
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Tue Sep 28 08:35:22 2021 +0200
Commit: Tomaž Vajngerl <quikee at 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 <quikee at gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee at 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();
More information about the Libreoffice-commits
mailing list