summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-24 12:08:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-24 13:03:48 +0100
commitc51fe1cf11cfe919b39966bb40f5be0f2e39d2a3 (patch)
tree23b9885c0efba42c9444024942b7b13eb1aec624
parent15e030839b53554c722251660a7bce4a0176b4df (diff)
coverity#1000603 Unchecked dynamic_cast
Change-Id: Ia750c9cc1c6a4182d220ad22013ac1450c498539
-rw-r--r--sd/source/ui/view/drtxtob.cxx2
1 files changed, 1 insertions, 1 deletions
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<const SvxFontHeightItem *>(pI));
+ SvxFontHeightItem aFontItem = dynamic_cast<const SvxFontHeightItem&>(*pI);
aFontItem.SetHeight(aFontItem.GetHeight(), stretchX, aFontItem.GetPropUnit());
aAttrSet.Put( aFontItem, nWhich );
}