diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 10:19:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 11:36:29 +0000 |
commit | 7e6054c7d41e459490fbccd77794d110b437329d (patch) | |
tree | 70d79ab7455347634550a9b0be3167202b38cd0b /writerfilter | |
parent | 84b0b95ff9cd72ed8d768558db2efa398fb83b16 (diff) |
coverity#1157794 Unchecked dynamic_cast
Change-Id: Idda6698a0fc53c1b59b2a7d2e88e24dac55a0fbd
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx index 71331e19b04a..60ac009aaa52 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx @@ -656,7 +656,7 @@ void OOXMLDocumentImpl::resolveGlossaryStream(Stream & /*rStream*/) void OOXMLDocumentImpl::resolveEmbeddingsStream(Stream & /*rStream*/) { uno::Reference<embed::XRelationshipAccess> mxRelationshipAccess; - mxRelationshipAccess.set((*dynamic_cast<OOXMLStreamImpl *>(mpStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW); + mxRelationshipAccess.set((dynamic_cast<OOXMLStreamImpl&>(*mpStream.get())).accessDocumentStream(), uno::UNO_QUERY_THROW); if (mxRelationshipAccess.is()) { OUString sChartType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"); |