From 892e7ba8135be0e195f35b95674d813d828a40de Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 23 Oct 2014 16:46:29 +0100 Subject: coverity#704656 Unchecked dynamic_cast Change-Id: Ib70eace7de922983528bdd57ba7cc029647a7090 --- reportdesign/source/core/sdr/RptPage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reportdesign') 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(pObj); - uno::Reference< container::XChild> xChild(pUnoObj->GetUnoControlModel(),uno::UNO_QUERY); + OUnoObject& rUnoObj = dynamic_cast(*pObj); + uno::Reference< container::XChild> xChild(rUnoObj.GetUnoControlModel(),uno::UNO_QUERY); if ( xChild.is() ) xChild->setParent(NULL); } -- cgit v1.2.3