diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-01-12 21:39:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-01-12 21:38:06 +0000 |
commit | ca3ba86fe17227089d797f4f46cf228af97de3b3 (patch) | |
tree | 772ba78b0a2b4e2bca77157ddcabf723ef7a5d5b /cppuhelper | |
parent | c925ad4b1be66bf9cb94fbda0873c1da26f28aa1 (diff) |
Fix aggregating OFactoryComponentHelper::queryInterface
4bfc00aca2441082842f91dfba15886258674227 "#67468# factories support
XUnloadingPreference now" had added the check for XUnloadingPreference there,
but that's already covered by OFactoryComponentHelper::queryAggregation
delegating to OSingleFactoryHelper::queryInterface. (And as
OFactoryComponentHelper is inheriting XAggregation via OComponentHelper, the
only thing that OFactoryComponentHelper::queryInterface shall do is delegate to
OComponentHelper::queryInterface.)
Change-Id: Iebe507e88791d1e2390d042a8a9c152512ce212a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145420
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/factory.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index c8efcab0e604..c4797f85504a 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -298,12 +298,6 @@ protected: Any SAL_CALL OFactoryComponentHelper::queryInterface( const Type & rType ) { - if( rType == cppu::UnoType<XUnloadingPreference>::get() ) - { - return Any( - Reference< XUnloadingPreference >( - static_cast< XUnloadingPreference * >(this) ) ); - } return OComponentHelper::queryInterface( rType ); } |