diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-11-11 09:28:52 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-11-11 11:41:24 +0100 |
commit | 8770656bfe32d3e89acb6d6da5bda261f2051193 (patch) | |
tree | 71074df56844e224a382952457c70b032d6b373a /dbaccess/source/core/api/CRowSetDataColumn.cxx | |
parent | tdf#143128: sw: Add UItest (diff) | |
download | core-8770656bfe32d3e89acb6d6da5bda261f2051193.tar.gz core-8770656bfe32d3e89acb6d6da5bda261f2051193.zip |
Replace some macros in dbaccess part 5
Remove BEGIN_PROPERTY_SEQUENCE + BEGIN_PROPERTY_HELPER
+ BEGIN_PROPERTY_SEQUENCE + BEGIN_PROPERTY_HELPER
+ END_PROPERTY_HELPER + IMPLEMENT_SERVICE_INFO_IMPLNAME
+ IMPLEMENT_SERVICE_INFO_SUPPORTS
Change-Id: I44499ba68a162b01a9dd5192228b8190b1f40c98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125028
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/core/api/CRowSetDataColumn.cxx')
-rw-r--r-- | dbaccess/source/core/api/CRowSetDataColumn.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/core/api/CRowSetDataColumn.cxx b/dbaccess/source/core/api/CRowSetDataColumn.cxx index f66f67cd6d55..f1b7e782e7be 100644 --- a/dbaccess/source/core/api/CRowSetDataColumn.cxx +++ b/dbaccess/source/core/api/CRowSetDataColumn.cxx @@ -63,8 +63,9 @@ ORowSetDataColumn::~ORowSetDataColumn() // comphelper::OPropertyArrayUsageHelper ::cppu::IPropertyArrayHelper* ORowSetDataColumn::createArrayHelper( ) const { - BEGIN_PROPERTY_SEQUENCE(21) - + css::uno::Sequence< css::beans::Property> aDescriptor(21); + css::beans::Property* pDesc = aDescriptor.getArray(); + sal_Int32 nPos = 0; DECL_PROP_IMPL(CATALOGNAME, cppu::UnoType<OUString>::get()) css::beans::PropertyAttribute::READONLY ); DECL_PROP_IMPL(DISPLAYSIZE, cppu::UnoType<sal_Int32>::get()) css::beans::PropertyAttribute::READONLY ); DECL_PROP_IMPL(ISAUTOINCREMENT, cppu::UnoType<bool>::get()) css::beans::PropertyAttribute::READONLY ); @@ -87,7 +88,7 @@ ORowSetDataColumn::~ORowSetDataColumn() DECL_PROP_IMPL(TYPENAME, cppu::UnoType<OUString>::get()) css::beans::PropertyAttribute::READONLY ); DECL_PROP_IMPL(VALUE, cppu::UnoType<Any>::get()) css::beans::PropertyAttribute::BOUND ); - END_PROPERTY_SEQUENCE() + OSL_ENSURE(nPos == aDescriptor.getLength(), "forgot to adjust the count ?"); Sequence< Property > aRegisteredProperties; describeProperties( aRegisteredProperties ); |