diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-05 22:30:24 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-16 21:52:28 +0200 |
commit | 384cb5ff7b9227002206422d0bf4e75795d5f5cc (patch) | |
tree | 21a15556a592c9bc42893c69d98d23b64c1a9464 /svx/source/engine3d/dragmt3d.cxx | |
parent | 7e605f124f78a7f8b97385fcb8b91dce2ec735d8 (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/engine3d/dragmt3d.cxx')
-rw-r--r-- | svx/source/engine3d/dragmt3d.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx index dd410bbeb231..e1c2fb6f105a 100644 --- a/svx/source/engine3d/dragmt3d.cxx +++ b/svx/source/engine3d/dragmt3d.cxx @@ -48,16 +48,15 @@ E3dDragMethod::E3dDragMethod ( mbMovedAtAll(false) { // Create a unit for all the 3D objects present in the selection - const long nCnt(rMark.GetMarkCount()); + const size_t nCnt(rMark.GetMarkCount()); static bool bDoInvalidate(false); - long nObjs(0); if(mbMoveFull) { // for non-visible 3D objects fallback to wireframe interaction bool bInvisibleObjects(false); - for(nObjs = 0;!bInvisibleObjects && nObjs < nCnt;nObjs++) + for(size_t nObjs = 0; !bInvisibleObjects && nObjs < nCnt; ++nObjs) { E3dObject* pE3dObj = dynamic_cast< E3dObject* >(rMark.GetMark(nObjs)->GetMarkedSdrObj()); @@ -76,7 +75,7 @@ E3dDragMethod::E3dDragMethod ( } } - for(nObjs = 0;nObjs < nCnt;nObjs++) + for(size_t nObjs = 0; nObjs < nCnt; ++nObjs) { E3dObject* pE3dObj = dynamic_cast< E3dObject* >(rMark.GetMark(nObjs)->GetMarkedSdrObj()); |