diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-03 09:56:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-03 18:21:52 +0200 |
commit | 74f0a22ab268fb2d15c7f7ac8ea15fb4a3fae122 (patch) | |
tree | bf2320d544e390615ad53c7d09e1f0ff05e8ece5 /xmloff/source | |
parent | cd91074bc087b0f85293c2756cdb96f53024c489 (diff) |
cid#1607108 silence Unchecked dynamic_cast
Change-Id: I4bd000f16e0e75beff4877ccff43a8a81e8d393f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169924
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/XMLEmbeddedObjectImportContext.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx index d9d57af9f664..91b9ee234954 100644 --- a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx +++ b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx @@ -118,8 +118,8 @@ void XMLEmbeddedObjectImportContext::SetComponent( Reference< XComponent > const return; assert(dynamic_cast<SvXMLImport*>(xFilter.get())); - SvXMLImport *pFastHandler = dynamic_cast<SvXMLImport*>(xFilter.get()); - mxFastHandler = pFastHandler; + SvXMLImport& rFastHandler = dynamic_cast<SvXMLImport&>(*xFilter); + mxFastHandler = &rFastHandler; try { @@ -138,7 +138,7 @@ void XMLEmbeddedObjectImportContext::SetComponent( Reference< XComponent > const // #i34042: copy namespace declarations // We created a new instance of XMLImport, so we need to propagate the namespace // declarations to it. - pFastHandler->GetNamespaceMap() = GetImport().GetNamespaceMap(); + rFastHandler.GetNamespaceMap() = GetImport().GetNamespaceMap(); } XMLEmbeddedObjectImportContext::XMLEmbeddedObjectImportContext( |