Simplify OPropertyContainer::getBaseTypes

Change-Id: I438d510e05329163dabdc8ed42d3a97d49e19ef9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178055
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-12-07 02:38:08 +05:00
parent 831700824d
commit 8fdef54870
2 changed files with 2 additions and 7 deletions

View file

@ -42,12 +42,7 @@ OPropertyContainer::~OPropertyContainer()
Sequence< Type > OPropertyContainer::getBaseTypes()
{
// just the types from our one and only base class
::cppu::OTypeCollection aTypes(
cppu::UnoType<XPropertySet>::get(),
cppu::UnoType<XFastPropertySet>::get(),
cppu::UnoType<XMultiPropertySet>::get()
);
return aTypes.getTypes();
return cppu::OPropertySetHelper::getTypes();
}
sal_Bool OPropertyContainer::convertFastPropertyValue(

View file

@ -53,7 +53,7 @@ protected:
/// for scripting : the types of the interfaces supported by this class
///
/// @throws css::uno::RuntimeException
static css::uno::Sequence< css::uno::Type > getBaseTypes();
css::uno::Sequence< css::uno::Type > getBaseTypes();
// OPropertySetHelper overridables
virtual sal_Bool SAL_CALL convertFastPropertyValue(