diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 15:22:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-16 06:41:46 +0000 |
commit | e5092fdf2420c81887a7e845af8e00bcedee156e (patch) | |
tree | 5ba5000a6eece3b9de325b9d43f4637c9ae0aaed /toolkit | |
parent | d04c197b436094844abfa5fb7c12e095165d2bca (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')
-rw-r--r-- | toolkit/inc/awt/vclxregion.hxx | 7 | ||||
-rw-r--r-- | toolkit/source/awt/vclxregion.cxx | 3 | ||||
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/toolkit/inc/awt/vclxregion.hxx b/toolkit/inc/awt/vclxregion.hxx index 70b79990c0b3..c0c64d37a6a5 100644 --- a/toolkit/inc/awt/vclxregion.hxx +++ b/toolkit/inc/awt/vclxregion.hxx @@ -21,7 +21,6 @@ #include <com/sun/star/awt/XRegion.hpp> -#include <com/sun/star/lang/XUnoTunnel.hpp> #include <comphelper/servicehelper.hxx> #include <cppuhelper/implbase.hxx> #include <mutex> @@ -32,8 +31,7 @@ class VCLXRegion final : public cppu::WeakImplHelper< - css::awt::XRegion, - css::lang::XUnoTunnel> + css::awt::XRegion> { std::mutex maMutex; vcl::Region maRegion; @@ -44,9 +42,6 @@ public: const vcl::Region& GetRegion() const { return maRegion; } - // css::lang::XUnoTunnel - UNO3_GETIMPLEMENTATION_DECL(VCLXRegion) - // css::awt::XRegion css::awt::Rectangle SAL_CALL getBounds() override; void SAL_CALL clear() override; 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 |