summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-28 12:05:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-28 13:49:47 +0100
commit4e2ece8848466aa5a2327c236b1c840e95ebacdf (patch)
tree891b7b217ed9b1ced989c5701edb207089910cc3
parent4d95f608b54e8ecd838fbafd035b7ce5596a797d (diff)
coverity#704965 Unchecked dynamic_cast
Change-Id: Iadb4615ac582fa9ef815cab399476ed330838173
-rw-r--r--sw/source/core/unocore/unotbl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index ba49b46628ba..9f3e75f64838 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -3185,8 +3185,8 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An
pUnoCrsr->SetMark();
pUnoCrsr->GetPoint()->nNode = *pBRBox->GetSttNd();
pUnoCrsr->Move( fnMoveForward, fnGoNode );
- SwUnoTableCrsr* pCrsr = dynamic_cast<SwUnoTableCrsr*>(pUnoCrsr);
- pCrsr->MakeBoxSels();
+ SwUnoTableCrsr& rCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
+ rCrsr.MakeBoxSels();
SfxItemSet aSet(pDoc->GetAttrPool(),
RES_BOX, RES_BOX,
@@ -3220,7 +3220,7 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An
aSet.Put(aBox);
aSet.Put(aBoxInfo);
- pDoc->SetTabBorders(*pCrsr, aSet);
+ pDoc->SetTabBorders(rCrsr, aSet);
delete pUnoCrsr;
}
break;