loplugin:implinheritancehelper in dbaccess
use more ImplInheritanceHelper to reduce boilerplate Change-Id: Iefeccd009ae03d0dda8b9ff436408d747052b8af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144161 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
c7b93e2687
commit
c43a4b0ffd
2 changed files with 3 additions and 29 deletions
|
@ -174,7 +174,7 @@ IMPL_LINK_NOARG(LimitBox, ActivateHdl, weld::ComboBox&, bool)
|
|||
|
||||
LimitBoxController::LimitBoxController(
|
||||
const uno::Reference< uno::XComponentContext >& rxContext ) :
|
||||
svt::ToolboxController( rxContext,
|
||||
LimitBoxController_Base( rxContext,
|
||||
uno::Reference< frame::XFrame >(),
|
||||
".uno:DBLimit" ),
|
||||
m_xLimitBox( nullptr )
|
||||
|
@ -185,27 +185,6 @@ LimitBoxController::~LimitBoxController()
|
|||
{
|
||||
}
|
||||
|
||||
/// XInterface
|
||||
uno::Any SAL_CALL LimitBoxController::queryInterface( const uno::Type& aType )
|
||||
{
|
||||
uno::Any a = ToolboxController::queryInterface( aType );
|
||||
if ( a.hasValue() )
|
||||
return a;
|
||||
|
||||
return ::cppu::queryInterface( aType, static_cast< lang::XServiceInfo* >( this ));
|
||||
}
|
||||
|
||||
void SAL_CALL LimitBoxController::acquire() noexcept
|
||||
{
|
||||
ToolboxController::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL LimitBoxController::release() noexcept
|
||||
{
|
||||
ToolboxController::release();
|
||||
}
|
||||
|
||||
|
||||
/// XServiceInfo
|
||||
OUString SAL_CALL LimitBoxController::getImplementationName()
|
||||
{
|
||||
|
|
|
@ -24,19 +24,14 @@ class LimitBox;
|
|||
* It is communicating with querycontroller and this channel make enable
|
||||
* to set\get the value of limitbox when switching between views
|
||||
*/
|
||||
class LimitBoxController: public svt::ToolboxController,
|
||||
public css::lang::XServiceInfo
|
||||
typedef cppu::ImplInheritanceHelper< ::svt::ToolboxController, css::lang::XServiceInfo> LimitBoxController_Base;
|
||||
class LimitBoxController: public LimitBoxController_Base
|
||||
{
|
||||
public:
|
||||
explicit LimitBoxController(
|
||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
||||
virtual ~LimitBoxController() override;
|
||||
|
||||
/// XInterface
|
||||
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
|
||||
virtual void SAL_CALL acquire() noexcept override;
|
||||
virtual void SAL_CALL release() noexcept override;
|
||||
|
||||
/// XServiceInfo
|
||||
DECLARE_SERVICE_INFO();
|
||||
|
||||
|
|
Loading…
Reference in a new issue