[Libreoffice-commits] core.git: svx/source
Mesut Ãifci (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 7 16:51:07 UTC 2020
svx/source/svdraw/svdedxv.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 16f6a6e61fdcbb41b77a613d49959c0b9e3a8a32
Author: Mesut Çifci <mesutcifci97 at gmail.com>
AuthorDate: Wed Jan 1 04:30:05 2020 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Tue Jan 7 17:50:29 2020 +0100
tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types
Change-Id: I55e4028bfc39161f6734cc54721d49cd25e078f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86060
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index d5ed29862e3d..5e6eb95bad8d 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -255,7 +255,7 @@ void SdrObjEditView::ModelHasChanged()
SdrTextObj* pTextObj = mxTextEditObj.get();
if (pTextObj != nullptr)
{
- sal_uIntPtr nOutlViewCnt = pTextEditOutliner->GetViewCount();
+ size_t nOutlViewCnt = pTextEditOutliner->GetViewCount();
bool bAreaChg = false;
bool bAnchorChg = false;
bool bColorChg = false;
@@ -315,7 +315,7 @@ void SdrObjEditView::ModelHasChanged()
pTextObj->TakeTextAnchorRect(aAnchorRect);
pTextObj->ImpSetContourPolygon(*pTextEditOutliner, aAnchorRect, true);
}
- for (sal_uIntPtr nOV = 0; nOV < nOutlViewCnt; nOV++)
+ for (size_t nOV = 0; nOV < nOutlViewCnt; nOV++)
{
OutlinerView* pOLV = pTextEditOutliner->GetView(nOV);
EVControlBits nStat0 = pOLV->GetControlWord();
@@ -358,7 +358,7 @@ void SdrObjEditView::ModelHasChanged()
// again on ModelHasChanged().
if (bContourFrame || bAreaChg || bAnchorChg || bColorChg)
{
- for (sal_uIntPtr nOV = 0; nOV < nOutlViewCnt; nOV++)
+ for (size_t nOV = 0; nOV < nOutlViewCnt; nOV++)
{
OutlinerView* pOLV = pTextEditOutliner->GetView(nOV);
{ // invalidate old OutlinerView area
@@ -1253,7 +1253,7 @@ bool SdrObjEditView::SdrBeginTextEdit(SdrObject* pObj_, SdrPageView* pPV, vcl::W
}
// check if this view is already inserted
- sal_uIntPtr i2, nCount = pTextEditOutliner->GetViewCount();
+ size_t i2, nCount = pTextEditOutliner->GetViewCount();
for (i2 = 0; i2 < nCount; i2++)
{
if (pTextEditOutliner->GetView(i2) == pTextEditOutlinerView)
@@ -1594,7 +1594,7 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(bool bDontDeleteReally)
AdjustMarkHdl();
}
// delete all OutlinerViews
- for (sal_uIntPtr i = pTEOutliner->GetViewCount(); i > 0;)
+ for (size_t i = pTEOutliner->GetViewCount(); i > 0;)
{
i--;
OutlinerView* pOLV = pTEOutliner->GetView(i);
@@ -1672,8 +1672,8 @@ OutlinerView* SdrObjEditView::ImpFindOutlinerView(vcl::Window const* pWin) const
if (pTextEditOutliner == nullptr)
return nullptr;
OutlinerView* pNewView = nullptr;
- sal_uIntPtr nWinCount = pTextEditOutliner->GetViewCount();
- for (sal_uIntPtr i = 0; i < nWinCount && pNewView == nullptr; i++)
+ size_t nWinCount = pTextEditOutliner->GetViewCount();
+ for (size_t i = 0; i < nWinCount && pNewView == nullptr; i++)
{
OutlinerView* pView = pTextEditOutliner->GetView(i);
if (pView->GetWindow() == pWin)
@@ -2321,7 +2321,7 @@ void SdrObjEditView::DeleteWindowFromPaintView(OutputDevice* pOldWin)
if (mxTextEditObj.is() && !bTextEditOnlyOneView && pOldWin->GetOutDevType() == OUTDEV_WINDOW)
{
- for (sal_uIntPtr i = pTextEditOutliner->GetViewCount(); i > 0;)
+ for (size_t i = pTextEditOutliner->GetViewCount(); i > 0;)
{
i--;
OutlinerView* pOLV = pTextEditOutliner->GetView(i);
More information about the Libreoffice-commits
mailing list