Use ImplInheritanceHelper in VCLXAccessibleRadioButton

Change-Id: If07a07cf4e6fa465d1d6d3e52abe550922edeb6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146234
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2023-01-26 17:27:16 +01:00
parent 435cc6f4b2
commit d3080dc586
2 changed files with 6 additions and 26 deletions

View file

@ -24,17 +24,15 @@
#include <com/sun/star/accessibility/XAccessibleAction.hpp>
#include <com/sun/star/accessibility/XAccessibleValue.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
typedef ::cppu::ImplHelper2<
css::accessibility::XAccessibleAction,
css::accessibility::XAccessibleValue > VCLXAccessibleRadioButton_BASE;
class VCLXAccessibleRadioButton final : public VCLXAccessibleTextComponent,
public VCLXAccessibleRadioButton_BASE
class VCLXAccessibleRadioButton final : public cppu::ImplInheritanceHelper<
VCLXAccessibleTextComponent,
css::accessibility::XAccessibleAction,
css::accessibility::XAccessibleValue>
{
virtual ~VCLXAccessibleRadioButton() override = default;
@ -43,13 +41,7 @@ class VCLXAccessibleRadioButton final : public VCLXAccessibleTextComponent,
virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override;
public:
using VCLXAccessibleTextComponent::VCLXAccessibleTextComponent;
// XInterface
DECLARE_XINTERFACE()
// XTypeProvider
DECLARE_XTYPEPROVIDER()
VCLXAccessibleRadioButton( VCLXWindow* pVCLXWindow ): ImplInheritanceHelper(pVCLXWindow) {}
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;

View file

@ -105,18 +105,6 @@ void VCLXAccessibleRadioButton::FillAccessibleStateSet( sal_Int64& rStateSet )
}
// XInterface
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleRadioButton, VCLXAccessibleTextComponent, VCLXAccessibleRadioButton_BASE )
// XTypeProvider
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleRadioButton, VCLXAccessibleTextComponent, VCLXAccessibleRadioButton_BASE )
// XServiceInfo