diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:05:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:15 +0000 |
commit | ea3074e0beb7e0185205a70327e9ec47ec1f1028 (patch) | |
tree | 0468684252e24d17694ccc184a144ebd124c70d4 /svx | |
parent | d6c590bb995aa8029e6fb3597081e8098d672789 (diff) |
coverity#708829 Unused pointer value
Change-Id: Ia8815974467abb7342707fcd54174857f0a0aef7
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/connctrl.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx index f524d6682e18..7ed4c8644eb2 100644 --- a/svx/source/dialog/connctrl.cxx +++ b/svx/source/dialog/connctrl.cxx @@ -144,12 +144,10 @@ void SvxXConnectionPreview::Construct() if( nMarkCount >= 1 ) { bool bFound = false; - const SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); - for( sal_uInt16 i = 0; i < nMarkCount && !bFound; i++ ) { - pObj = rMarkList.GetMark( i )->GetMarkedSdrObj(); + const SdrObject* pObj = rMarkList.GetMark( i )->GetMarkedSdrObj(); sal_uInt32 nInv = pObj->GetObjInventor(); sal_uInt16 nId = pObj->GetObjIdentifier(); if( nInv == SdrInventor && nId == OBJ_EDGE ) |