From c51fe1cf11cfe919b39966bb40f5be0f2e39d2a3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 24 May 2014 12:08:52 +0100 Subject: coverity#1000603 Unchecked dynamic_cast Change-Id: Ia750c9cc1c6a4182d220ad22013ac1450c498539 --- sd/source/ui/view/drtxtob.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx index ec24fc937367..88dc2aeed1f1 100644 --- a/sd/source/ui/view/drtxtob.cxx +++ b/sd/source/ui/view/drtxtob.cxx @@ -214,7 +214,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) { if( nSlotId == SID_ATTR_CHAR_FONTHEIGHT ) { - SvxFontHeightItem aFontItem = *(dynamic_cast(pI)); + SvxFontHeightItem aFontItem = dynamic_cast(*pI); aFontItem.SetHeight(aFontItem.GetHeight(), stretchX, aFontItem.GetPropUnit()); aAttrSet.Put( aFontItem, nWhich ); } -- cgit