summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 15:22:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-16 06:41:46 +0000
commite5092fdf2420c81887a7e845af8e00bcedee156e (patch)
tree5ba5000a6eece3b9de325b9d43f4637c9ae0aaed /toolkit/source
parentd04c197b436094844abfa5fb7c12e095165d2bca (diff)
XUnoTunnel->dynamic_cast in VCLXRegion
Change-Id: I75956a2c713d52c01dcfd47fc0b8506ba526523e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxregion.cxx3
-rw-r--r--toolkit/source/helper/vclunohelper.cxx2
2 files changed, 1 insertions, 4 deletions
diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx
index d9abedecfd54..fff7e7969d9a 100644
--- a/toolkit/source/awt/vclxregion.cxx
+++ b/toolkit/source/awt/vclxregion.cxx
@@ -31,9 +31,6 @@ VCLXRegion::~VCLXRegion()
{
}
-// css::lang::XUnoTunnel
-UNO3_GETIMPLEMENTATION_IMPL( VCLXRegion );
-
css::awt::Rectangle VCLXRegion::getBounds()
{
std::scoped_lock aGuard( maMutex );
diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx
index 42b55c6db04f..c0f93ca5d756 100644
--- a/toolkit/source/helper/vclunohelper.cxx
+++ b/toolkit/source/helper/vclunohelper.cxx
@@ -123,7 +123,7 @@ vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWind
vcl::Region VCLUnoHelper::GetRegion( const css::uno::Reference< css::awt::XRegion >& rxRegion )
{
vcl::Region aRegion;
- VCLXRegion* pVCLRegion = comphelper::getFromUnoTunnel<VCLXRegion>( rxRegion );
+ VCLXRegion* pVCLRegion = dynamic_cast<VCLXRegion*>( rxRegion.get() );
if ( pVCLRegion )
aRegion = pVCLRegion->GetRegion();
else