diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-12 16:33:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 18:32:34 +0000 |
commit | f2918ed9add416e16396965a4b6c7a5e8865a07f (patch) | |
tree | 58e271540a35e222358f396b43eebec370e03f9f /editeng | |
parent | 9ca22b602154dfab8f45a98259e5365b0a5e7bc4 (diff) |
XUnoTunnel->dynamic_cast in SvUnoAttributeContainer
Change-Id: Ief76f12dd98e3455667b70d09605c82c0cedc4b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145485
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/xmlcnitm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/xmlcnitm.cxx b/editeng/source/items/xmlcnitm.cxx index 50733ade4dd4..7507ed2afdd0 100644 --- a/editeng/source/items/xmlcnitm.cxx +++ b/editeng/source/items/xmlcnitm.cxx @@ -76,8 +76,8 @@ bool SvXMLAttrContainerItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMembe bool SvXMLAttrContainerItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) { - Reference<XUnoTunnel> xTunnel(rVal, UNO_QUERY); - if (auto pContainer = comphelper::getFromUnoTunnel<SvUnoAttributeContainer>(xTunnel)) + Reference<XInterface> xTunnel(rVal, UNO_QUERY); + if (auto pContainer = dynamic_cast<SvUnoAttributeContainer*>(xTunnel.get())) { maContainerData = *pContainer->GetContainerImpl(); } |