diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 11:07:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 11:13:55 +0000 |
commit | b45270bbfe62102af2300ae6450930d25131f854 (patch) | |
tree | 32f4d0a203018a0ac39051ce8130351360fcd6de /xmloff/source/draw | |
parent | fe0f96e4aafc9ae39fab7bc13e7fd9563ff30cd8 (diff) |
coverity#705095 Unchecked dynamic_cast
Change-Id: Ia8291acbba50c492568b11e1eb852e7b84885633
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 2 |
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 ); |