summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-07 09:11:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-07 09:12:08 +0100
commite37539b3f0066abe29b737d4194ee766d5b09028 (patch)
tree816a59d4a072be675071fb725ef280634ec9cb4f /sw
parent0ed17ba0555c4c3cb5b4125a9756dc438000d2c0 (diff)
coverity#1414682 unnecessary dynamic_cast
Change-Id: I7a1a7b5601f474fda84eef53009f4d45ae35b158
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 38070fe68586..9565b70465ab 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -1210,7 +1210,7 @@ SdrObject* SwWW8ImplReader::ReadTextBox(WW8_DPHEAD* pHd, SfxAllItemSet &rSet)
aP1.X() += (sal_Int16)SVBT16ToShort( pHd->dxa );
aP1.Y() += (sal_Int16)SVBT16ToShort( pHd->dya );
- SdrObject* pObj = new SdrRectObj( OBJ_TEXT, tools::Rectangle( aP0, aP1 ) );
+ SdrRectObj* pObj = new SdrRectObj( OBJ_TEXT, tools::Rectangle( aP0, aP1 ) );
pObj->SetModel( m_pDrawModel );
pObj->NbcSetSnapRect(tools::Rectangle(aP0, aP1));
Size aSize( (sal_Int16)SVBT16ToShort( pHd->dxa ) ,
@@ -1218,7 +1218,7 @@ SdrObject* SwWW8ImplReader::ReadTextBox(WW8_DPHEAD* pHd, SfxAllItemSet &rSet)
long nStartCpFly,nEndCpFly;
bool bContainsGraphics;
- InsertTxbxText(dynamic_cast<SdrTextObj*>(pObj), &aSize, 0, 0, 0, nullptr, false,
+ InsertTxbxText(pObj, &aSize, 0, 0, 0, nullptr, false,
bDummy,nullptr,&nStartCpFly,&nEndCpFly,&bContainsGraphics);
SetStdAttr( rSet, aTextB.aLnt, aTextB.aShd );