summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-23 16:50:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-24 09:24:56 +0100
commitfebbda147aab20d7f25d1e1155b2d49bab0cee9a (patch)
treebe3f95dc84f57879504e565b2f475d8d85e516be /reportdesign
parent892e7ba8135be0e195f35b95674d813d828a40de (diff)
coverity#704660 Unchecked dynamic_cast
Change-Id: I9361477855b6d3fa18f0b1e433a5d21683327814
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/SectionView.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/SectionView.cxx b/reportdesign/source/ui/report/SectionView.cxx
index c36108b32ba5..bbbbf20dcc23 100644
--- a/reportdesign/source/ui/report/SectionView.cxx
+++ b/reportdesign/source/ui/report/SectionView.cxx
@@ -180,10 +180,10 @@ void OSectionView::SetMarkedToLayer( SdrLayerID _nLayerNo )
{
AddUndo( new SdrUndoObjectLayerChange( *pObj, pObj->GetLayer(), _nLayerNo) );
pObj->SetLayer( _nLayerNo );
- OObjectBase* pBaseObj = dynamic_cast<OObjectBase*>(pObj);
+ OObjectBase& rBaseObj = dynamic_cast<OObjectBase&>(*pObj);
try
{
- pBaseObj->getReportComponent()->setPropertyValue(PROPERTY_OPAQUE,uno::makeAny(_nLayerNo == RPT_LAYER_FRONT));
+ rBaseObj.getReportComponent()->setPropertyValue(PROPERTY_OPAQUE,uno::makeAny(_nLayerNo == RPT_LAYER_FRONT));
}
catch(const uno::Exception&)
{