diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-09-10 12:27:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-09-10 19:03:56 +0200 |
commit | 83dea83cc5079c615923910727b95ef89a1936cc (patch) | |
tree | 5d05998ed2dddb615c994da5cf8a5816933187aa /svtools/source | |
parent | a1174a5f1e312ebb98c3941d35287a8ffcb368e9 (diff) |
GraphicRendererVCL does not need to implement XAggreggation
Checked on jenkins using 'make check' and
+void SAL_CALL setDelegator(css::uno::Reference<css::uno::XInterface> const &) final { assert(false); }
Change-Id: Ie2ee4b774167dd5f26ac88b97b0a5013ff379ac3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156793
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/graphic/renderer.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx index d031026b1317..e5988af75336 100644 --- a/svtools/source/graphic/renderer.cxx +++ b/svtools/source/graphic/renderer.cxx @@ -30,7 +30,6 @@ #include <comphelper/propertysethelper.hxx> #include <comphelper/propertysetinfo.hxx> #include <cppuhelper/supportsservice.hxx> -#include <cppuhelper/weakagg.hxx> #include <rtl/ref.hxx> #include <vcl/GraphicObject.hxx> #include <vcl/outdev.hxx> @@ -43,7 +42,7 @@ using namespace ::com::sun::star; namespace { -class GraphicRendererVCL : public ::cppu::OWeakAggObject, +class GraphicRendererVCL : public ::cppu::OWeakObject, public css::lang::XServiceInfo, public css::lang::XTypeProvider, public ::comphelper::PropertySetHelper, @@ -56,7 +55,6 @@ public: GraphicRendererVCL(); // XInterface - virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override; virtual void SAL_CALL acquire() noexcept override; virtual void SAL_CALL release() noexcept override; @@ -92,7 +90,7 @@ GraphicRendererVCL::GraphicRendererVCL() : { } -uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType ) +uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType ) { uno::Any aAny; @@ -109,29 +107,23 @@ uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType else if( rType == cppu::UnoType<graphic::XGraphicRenderer>::get()) aAny <<= uno::Reference< graphic::XGraphicRenderer >(this); else - aAny = OWeakAggObject::queryAggregation( rType ); + aAny = OWeakObject::queryInterface( rType ); return aAny; } -uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType ) -{ - return OWeakAggObject::queryInterface( rType ); -} - - void SAL_CALL GraphicRendererVCL::acquire() noexcept { - OWeakAggObject::acquire(); + OWeakObject::acquire(); } void SAL_CALL GraphicRendererVCL::release() noexcept { - OWeakAggObject::release(); + OWeakObject::release(); } @@ -155,7 +147,6 @@ uno::Sequence< OUString > SAL_CALL GraphicRendererVCL::getSupportedServiceNames( uno::Sequence< uno::Type > SAL_CALL GraphicRendererVCL::getTypes() { static const uno::Sequence< uno::Type > aTypes { - cppu::UnoType<uno::XAggregation>::get(), cppu::UnoType<lang::XServiceInfo>::get(), cppu::UnoType<lang::XTypeProvider>::get(), cppu::UnoType<beans::XPropertySet>::get(), |