summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-01 04:30:05 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-01-07 17:50:29 +0100
commit16f6a6e61fdcbb41b77a613d49959c0b9e3a8a32 (patch)
treee48f5f0f333212d2ce6c35b55eaa678095df9409 /svx
parentccfccf4365362b5ba1d82b5816d5fc81a67de548 (diff)
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@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedxv.cxx16
1 files changed, 8 insertions, 8 deletions
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);