Fix SbaXGridControl queryAggregation
The base UnoControl uses WeakAggImplHelper9, so (for better or worse) derives from XAggregation, but SbaXGridControl failed to properly implement the XAggregation protocol. Change-Id: I26c825b9b64b4e886e69f95bc3d4d5d42120bd8a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145865 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -127,9 +127,9 @@ rtl::Reference<FmXGridPeer> SbaXGridControl::imp_CreatePeer(vcl::Window* pParent
|
||||
return pReturn;
|
||||
}
|
||||
|
||||
Any SAL_CALL SbaXGridControl::queryInterface(const Type& _rType)
|
||||
Any SAL_CALL SbaXGridControl::queryAggregation(const Type& _rType)
|
||||
{
|
||||
Any aRet = FmXGridControl::queryInterface(_rType);
|
||||
Any aRet = FmXGridControl::queryAggregation(_rType);
|
||||
return aRet.hasValue() ? aRet : ::cppu::queryInterface(_rType,static_cast<css::frame::XDispatch*>(this));
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ namespace dbaui
|
||||
virtual ~SbaXGridControl() override;
|
||||
|
||||
// UNO
|
||||
DECLARE_UNO3_DEFAULTS(SbaXGridControl, FmXGridControl)
|
||||
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& _rType) override;
|
||||
DECLARE_UNO3_AGG_DEFAULTS(SbaXGridControl, FmXGridControl)
|
||||
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type& _rType) override;
|
||||
|
||||
// XTypeProvider
|
||||
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
|
||||
|
||||
Reference in New Issue
Block a user