summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdovirt.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-08-05 22:30:24 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-08-16 21:52:28 +0200
commit384cb5ff7b9227002206422d0bf4e75795d5f5cc (patch)
tree21a15556a592c9bc42893c69d98d23b64c1a9464 /svx/source/svdraw/svdovirt.cxx
parent7e605f124f78a7f8b97385fcb8b91dce2ec735d8 (diff)
Consistently use size_t and SAL_MAX_SIZE
Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on. Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as return value in case of failure and in the related tests. Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927
Diffstat (limited to 'svx/source/svdraw/svdovirt.cxx')
-rw-r--r--svx/source/svdraw/svdovirt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdovirt.cxx b/svx/source/svdraw/svdovirt.cxx
index 83cac52987a6..122e8a59477c 100644
--- a/svx/source/svdraw/svdovirt.cxx
+++ b/svx/source/svdraw/svdovirt.cxx
@@ -235,7 +235,7 @@ void SdrVirtObj::AddToHdlList(SdrHdlList& rHdlList) const
// get handles using AddToHdlList from ref object
SdrHdlList aLocalList(0);
rRefObj.AddToHdlList(aLocalList);
- const sal_uInt32 nHdlCount(aLocalList.GetHdlCount());
+ const size_t nHdlCount(aLocalList.GetHdlCount());
if(nHdlCount)
{
@@ -243,7 +243,7 @@ void SdrVirtObj::AddToHdlList(SdrHdlList& rHdlList) const
// two lists then
const Point aOffset(GetOffset());
- for(sal_uInt32 a(0L); a < nHdlCount; a++)
+ for(size_t a = 0; a < nHdlCount; ++a)
{
SdrHdl* pCandidate = aLocalList.GetHdl(a);
pCandidate->SetPos(pCandidate->GetPos() + aOffset);
@@ -254,7 +254,7 @@ void SdrVirtObj::AddToHdlList(SdrHdlList& rHdlList) const
// source list is deleted
while(aLocalList.GetHdlCount())
{
- aLocalList.RemoveHdl(aLocalList.GetHdlCount() - 1L);
+ aLocalList.RemoveHdl(aLocalList.GetHdlCount() - 1);
}
}
}