diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 16:46:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 09:24:55 +0100 |
commit | 892e7ba8135be0e195f35b95674d813d828a40de (patch) | |
tree | 286bed61d89438d6c24442ffc86ae5b1b17f2321 /reportdesign | |
parent | eca5974eb20499d478773d5e374f038f96ebb5c2 (diff) |
coverity#704656 Unchecked dynamic_cast
Change-Id: Ib70eace7de922983528bdd57ba7cc029647a7090
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/sdr/RptPage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/core/sdr/RptPage.cxx b/reportdesign/source/core/sdr/RptPage.cxx index 4fa61a102a6e..5009a662032b 100644 --- a/reportdesign/source/core/sdr/RptPage.cxx +++ b/reportdesign/source/core/sdr/RptPage.cxx @@ -108,8 +108,8 @@ SdrObject* OReportPage::RemoveObject(size_t nObjNum) pSection->notifyElementRemoved(xShape); if (pObj->ISA(OUnoObject)) { - OUnoObject* pUnoObj = dynamic_cast<OUnoObject*>(pObj); - uno::Reference< container::XChild> xChild(pUnoObj->GetUnoControlModel(),uno::UNO_QUERY); + OUnoObject& rUnoObj = dynamic_cast<OUnoObject&>(*pObj); + uno::Reference< container::XChild> xChild(rUnoObj.GetUnoControlModel(),uno::UNO_QUERY); if ( xChild.is() ) xChild->setParent(NULL); } |