diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-07 11:31:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-07 11:31:35 +0000 |
commit | 4492de10e0c61900bd00b1b03983073258161a93 (patch) | |
tree | b1d4efbc1f12c01047c85a42c4bc73da8d460eda /dbaccess/source/core/api/CRowSetDataColumn.cxx | |
parent | fix syntax (diff) | |
download | core-4492de10e0c61900bd00b1b03983073258161a93.tar.gz core-4492de10e0c61900bd00b1b03983073258161a93.zip |
fix this up but keep cppcheck silent
Diffstat (limited to 'dbaccess/source/core/api/CRowSetDataColumn.cxx')
-rw-r--r-- | dbaccess/source/core/api/CRowSetDataColumn.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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 |