From 4492de10e0c61900bd00b1b03983073258161a93 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 7 Jan 2011 11:31:35 +0000 Subject: fix this up but keep cppcheck silent --- dbaccess/source/core/api/CRowSetDataColumn.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/core/api/CRowSetDataColumn.cxx') diff --git a/dbaccess/source/core/api/CRowSetDataColumn.cxx b/dbaccess/source/core/api/CRowSetDataColumn.cxx index c66b6c5940c5..8634bddbb763 100644 --- a/dbaccess/source/core/api/CRowSetDataColumn.cxx +++ b/dbaccess/source/core/api/CRowSetDataColumn.cxx @@ -77,9 +77,7 @@ ORowSetDataColumn::~ORowSetDataColumn() // comphelper::OPropertyArrayUsageHelper ::cppu::IPropertyArrayHelper* ORowSetDataColumn::createArrayHelper( ) const { - const sal_Int32 nDerivedProperties = 21; - Sequence< Property> aDerivedProperties( nDerivedProperties ); - sal_Int32 nPos = 0; + BEGIN_PROPERTY_HELPER(21) DECL_PROP1( CATALOGNAME, ::rtl::OUString, READONLY ); DECL_PROP1( DISPLAYSIZE, sal_Int32, READONLY ); @@ -107,7 +105,7 @@ ORowSetDataColumn::~ORowSetDataColumn() Sequence< Property > aRegisteredProperties; describeProperties( aRegisteredProperties ); - return new ::cppu::OPropertyArrayHelper( ::comphelper::concatSequences( aDerivedProperties, aRegisteredProperties ), sal_False ); + return new ::cppu::OPropertyArrayHelper( ::comphelper::concatSequences( aDescriptor, aRegisteredProperties ), sal_False ); } // cppu::OPropertySetHelper -- cgit