summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorYusuf Keten <ketenyusuf@gmail.com>2020-01-04 15:30:01 +0300
committerMichael Stahl <michael.stahl@cib.de>2020-01-13 14:04:42 +0100
commitc7de89df5efc4b2af1f81c00befcc957a7e22ca6 (patch)
treeea5f728a5e21199866058cba45807297b4f00d1c /svx
parentd865a4ea712619eee64e76483dc7223404e43a2c (diff)
tdf#75280 Convert inappropriate use of sal_uIntPtr to better integer types
Change-Id: Ia45fb0bc882411fe0bfcd1e83932d187b4873ab0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86214 Reviewed-by: Michael Stahl <michael.stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/charmap.cxx4
-rw-r--r--svx/source/svdraw/svdedtv2.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index ff323461cfa5..403d748a231e 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -358,9 +358,9 @@ int SvxShowCharSet::FirstInView() const
int SvxShowCharSet::LastInView() const
{
- sal_uIntPtr nIndex = FirstInView();
+ sal_uInt32 nIndex = FirstInView();
nIndex += ROW_COUNT * COLUMN_COUNT - 1;
- sal_uIntPtr nCompare = sal::static_int_cast<sal_uIntPtr>(mxFontCharMap->GetCharCount() - 1);
+ sal_uInt32 nCompare = mxFontCharMap->GetCharCount() - 1;
if (nIndex > nCompare)
nIndex = nCompare;
return nIndex;
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 286b74bb5a23..72a743fda6c8 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -2093,7 +2093,7 @@ void SdrEditView::DoImportMarkedMtf(SvdProgressInfo *pProgrInfo)
SdrPageView* pPV=pM->GetPageView();
SdrObjList* pOL=pObj->getParentSdrObjListFromSdrObject();
const size_t nInsPos=pObj->GetOrdNum()+1;
- sal_uIntPtr nInsCnt=0;
+ size_t nInsCnt=0;
tools::Rectangle aLogicRect;
SdrGrafObj* pGraf = dynamic_cast<SdrGrafObj*>( pObj );
@@ -2142,7 +2142,7 @@ void SdrEditView::DoImportMarkedMtf(SvdProgressInfo *pProgrInfo)
if (aGeoStat.nRotationAngle)
aGeoStat.RecalcSinCos();
- for (sal_uIntPtr i = 0; i < nInsCnt; i++)
+ for (size_t i = 0; i < nInsCnt; i++)
{
if (bUndo)
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pOL->GetObj(nObj)));