diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 12:05:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-28 13:49:47 +0100 |
commit | 4e2ece8848466aa5a2327c236b1c840e95ebacdf (patch) | |
tree | 891b7b217ed9b1ced989c5701edb207089910cc3 | |
parent | 4d95f608b54e8ecd838fbafd035b7ce5596a797d (diff) |
coverity#704965 Unchecked dynamic_cast
Change-Id: Iadb4615ac582fa9ef815cab399476ed330838173
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 6 |
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; |