From bb1e59d596ffa29d40b4538e18a08e5e91d469a9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 17 Jun 2016 19:40:58 +0200 Subject: Simplify OPropertyContainerHelper::registerPropertyNoMember's _pInitialValue Change-Id: Ibfb27b3eded45e2646dada37ce3663f427985ae9 --- dbaccess/source/core/api/RowSetBase.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx index a007159155c9..3bfa9b1e848b 100644 --- a/dbaccess/source/core/api/RowSetBase.cxx +++ b/dbaccess/source/core/api/RowSetBase.cxx @@ -96,10 +96,8 @@ ORowSetBase::ORowSetBase( const Reference& _rContext, ::cppu: { sal_Int32 nRBT = PropertyAttribute::READONLY | PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT; - sal_Int32 nInitialRowCountValue = 0; - sal_Bool bInitialRowCountFinalValue( false ); - registerPropertyNoMember( PROPERTY_ROWCOUNT, PROPERTY_ID_ROWCOUNT, nRBT, cppu::UnoType::get(), &nInitialRowCountValue ); - registerPropertyNoMember( PROPERTY_ISROWCOUNTFINAL, PROPERTY_ID_ISROWCOUNTFINAL, nRBT, cppu::UnoType::get(), &bInitialRowCountFinalValue ); + registerPropertyNoMember( PROPERTY_ROWCOUNT, PROPERTY_ID_ROWCOUNT, nRBT, cppu::UnoType::get(), css::uno::makeAny(0) ); + registerPropertyNoMember( PROPERTY_ISROWCOUNTFINAL, PROPERTY_ID_ISROWCOUNTFINAL, nRBT, cppu::UnoType::get(), css::uno::Any(false) ); } ORowSetBase::~ORowSetBase() -- cgit