summaryrefslogtreecommitdiff
path: root/svx/source/dialog/connctrl.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/dialog/connctrl.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/dialog/connctrl.cxx')
-rw-r--r--svx/source/dialog/connctrl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx
index bc6d869de696..82153a3a0275 100644
--- a/svx/source/dialog/connctrl.cxx
+++ b/svx/source/dialog/connctrl.cxx
@@ -145,13 +145,13 @@ void SvxXConnectionPreview::Construct()
DBG_ASSERT( pView, "No valid view is passed on! ");
const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
- sal_uIntPtr nMarkCount = rMarkList.GetMarkCount();
+ const size_t nMarkCount = rMarkList.GetMarkCount();
if( nMarkCount >= 1 )
{
bool bFound = false;
- for( sal_uInt16 i = 0; i < nMarkCount && !bFound; i++ )
+ for( size_t i = 0; i < nMarkCount && !bFound; ++i )
{
const SdrObject* pObj = rMarkList.GetMark( i )->GetMarkedSdrObj();
sal_uInt32 nInv = pObj->GetObjInventor();