summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-12 13:32:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 15:52:05 +0000
commit9e301586113ea693d5133527678866be4be3f62e (patch)
treea9def120e417062128b13c39795aaa28fb81f271 /svl
parentde2b1a3a22a0a3bf5dfdd44c57c09e1fd0ba39d2 (diff)
XUnoTunnel->dynamic_cast in SfxUnoStyleSheet
Change-Id: I22ad42fd0de3de3bddc1b6d3a99f09883e523340 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145464 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/style.cxx18
1 files changed, 2 insertions, 16 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 4f4ae926f461..ff21cd91c804 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -880,21 +880,13 @@ rtl::Reference<SfxStyleSheetBase> SfxStyleSheetPool::Create( const OUString& rNa
}
SfxUnoStyleSheet::SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetBasePool& _rPool, SfxStyleFamily _eFamily, SfxStyleSearchBits _nMask )
-: cppu::ImplInheritanceHelper<SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel>(_rName, _rPool, _eFamily, _nMask)
+: cppu::ImplInheritanceHelper<SfxStyleSheet, css::style::XStyle>(_rName, _rPool, _eFamily, _nMask)
{
}
SfxUnoStyleSheet* SfxUnoStyleSheet::getUnoStyleSheet( const css::uno::Reference< css::style::XStyle >& xStyle )
{
- return comphelper::getFromUnoTunnel<SfxUnoStyleSheet>(xStyle);
-}
-
-/**
- * XUnoTunnel
- */
-::sal_Int64 SAL_CALL SfxUnoStyleSheet::getSomething( const css::uno::Sequence< ::sal_Int8 >& rId )
-{
- return comphelper::getSomethingImpl(rId, this);
+ return dynamic_cast<SfxUnoStyleSheet*>(xStyle.get());
}
void
@@ -903,12 +895,6 @@ SfxStyleSheetBasePool::StoreStyleSheet(const rtl::Reference< SfxStyleSheetBase >
pImpl->mxIndexedStyleSheets->AddStyleSheet(xStyle);
}
-const css::uno::Sequence< ::sal_Int8 >& SfxUnoStyleSheet::getUnoTunnelId()
-{
- static const comphelper::UnoIdInit theSfxUnoStyleSheetIdentifier;
- return theSfxUnoStyleSheetIdentifier.getSeq();
-}
-
void
SfxStyleSheetBasePool::Reindex()
{