Simplify getTypes implementations

Change-Id: Ia0f7e8497f628b17a108a4dd8ffebc60745b7d6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178054
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-12-07 02:01:07 +05:00
parent 75f5c610de
commit 831700824d
3 changed files with 6 additions and 15 deletions

View file

@ -99,11 +99,8 @@ Any SAL_CALL ODatabaseMetaDataResultSet::queryInterface( const Type & rType )
css::uno::Sequence< css::uno::Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( ) css::uno::Sequence< css::uno::Type > SAL_CALL ODatabaseMetaDataResultSet::getTypes( )
{ {
::cppu::OTypeCollection aTypes( cppu::UnoType<css::beans::XMultiPropertySet>::get(), return comphelper::concatSequences(cppu::OPropertySetHelper::getTypes(),
cppu::UnoType<css::beans::XFastPropertySet>::get(), ODatabaseMetaDataResultSet_BASE::getTypes());
cppu::UnoType<css::beans::XPropertySet>::get());
return ::comphelper::concatSequences(aTypes.getTypes(),ODatabaseMetaDataResultSet_BASE::getTypes());
} }
void ODatabaseMetaDataResultSet::checkRecordSet() void ODatabaseMetaDataResultSet::checkRecordSet()

View file

@ -132,11 +132,8 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType )
css::uno::Sequence< css::uno::Type > SAL_CALL OResultSet::getTypes( ) css::uno::Sequence< css::uno::Type > SAL_CALL OResultSet::getTypes( )
{ {
::cppu::OTypeCollection aTypes( cppu::UnoType<css::beans::XMultiPropertySet>::get(), return comphelper::concatSequences(cppu::OPropertySetHelper::getTypes(),
cppu::UnoType<css::beans::XFastPropertySet>::get(), OResultSet_BASE::getTypes());
cppu::UnoType<css::beans::XPropertySet>::get());
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
} }
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName )

View file

@ -120,11 +120,8 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType )
css::uno::Sequence< css::uno::Type > SAL_CALL OStatement_Base::getTypes( ) css::uno::Sequence< css::uno::Type > SAL_CALL OStatement_Base::getTypes( )
{ {
::cppu::OTypeCollection aTypes( cppu::UnoType<css::beans::XMultiPropertySet>::get(), return comphelper::concatSequences(cppu::OPropertySetHelper::getTypes(),
cppu::UnoType<css::beans::XFastPropertySet>::get(), OStatement_BASE::getTypes());
cppu::UnoType<css::beans::XPropertySet>::get());
return ::comphelper::concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
} }