summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-21 11:07:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-21 11:13:55 +0000
commitb45270bbfe62102af2300ae6450930d25131f854 (patch)
tree32f4d0a203018a0ac39051ce8130351360fcd6de /xmloff
parentfe0f96e4aafc9ae39fab7bc13e7fd9563ff30cd8 (diff)
coverity#705095 Unchecked dynamic_cast
Change-Id: Ia8291acbba50c492568b11e1eb852e7b84885633
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpstyl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index 1f1c6f5571fa..34447403db3f 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -1608,7 +1608,7 @@ sal_Bool SdXMLHeaderFooterDeclContext::IsTransient() const
void SdXMLHeaderFooterDeclContext::EndElement()
{
- SdXMLImport& rImport = *dynamic_cast< SdXMLImport* >( &GetImport() );
+ SdXMLImport& rImport = dynamic_cast<SdXMLImport&>(GetImport());
if( IsXMLToken( GetLocalName(), XML_HEADER_DECL ) )
{
rImport.AddHeaderDecl( maStrName, maStrText );