fdo#82151 when constructing column object, replace m_aCurrentRow by a function
The passed m_aCurrentRow becomes out-of-date as soon as the current row changes. This also hides an implementation detail of ORowSet to ORowSet(Data)Column. Change-Id: Ib9188743e5dd6dec240e9f5fd3fd9655c6761abc Reviewed-on: https://gerrit.libreoffice.org/10792 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
This commit is contained in:
@@ -36,9 +36,13 @@ using namespace ::com::sun::star::beans;
|
||||
namespace dbaccess
|
||||
{
|
||||
|
||||
ORowSetColumn::ORowSetColumn( const Reference < XResultSetMetaData >& _xMetaData, const Reference < XRow >& _xRow, sal_Int32 _nPos,
|
||||
const Reference< XDatabaseMetaData >& _rxDBMeta, const OUString& _rDescription, const OUString& i_sLabel,ORowSetCacheIterator& _rColumnValue )
|
||||
:ORowSetDataColumn( _xMetaData, _xRow, NULL, _nPos, _rxDBMeta, _rDescription, i_sLabel,_rColumnValue )
|
||||
ORowSetColumn::ORowSetColumn( const Reference < XResultSetMetaData >& _xMetaData,
|
||||
const Reference < XRow >& _xRow, sal_Int32 _nPos,
|
||||
const Reference< XDatabaseMetaData >& _rxDBMeta,
|
||||
const OUString& _rDescription,
|
||||
const OUString& i_sLabel,
|
||||
const boost::function< const ::connectivity::ORowSetValue& ( sal_Int32 ) > &_getValue )
|
||||
:ORowSetDataColumn( _xMetaData, _xRow, NULL, _nPos, _rxDBMeta, _rDescription, i_sLabel, _getValue )
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user