loplugin: cstylecast
Change-Id: Ie478d1fcfd3b64d7a2128887c216b5e0b4501ab9
This commit is contained in:
@@ -323,7 +323,7 @@ void OKeySet::construct(const Reference< XResultSet>& _xDriverSet, const OUStrin
|
||||
|
||||
// the first row is empty because it's now easier for us to distinguish when we are beforefirst or first
|
||||
// without extra variable to be set
|
||||
OKeySetValue keySetValue((ORowSetValueVector *)NULL,::std::pair<sal_Int32,Reference<XRow> >(0,(Reference<XRow>)NULL));
|
||||
OKeySetValue keySetValue((ORowSetValueVector *)NULL,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>()));
|
||||
m_aKeyMap.insert(OKeySetMatrix::value_type(0, keySetValue));
|
||||
m_aKeyIter = m_aKeyMap.begin();
|
||||
}
|
||||
@@ -333,7 +333,7 @@ void OKeySet::reset(const Reference< XResultSet>& _xDriverSet)
|
||||
OCacheSet::construct(_xDriverSet, m_sRowSetFilter);
|
||||
m_bRowCountFinal = false;
|
||||
m_aKeyMap.clear();
|
||||
OKeySetValue keySetValue((ORowSetValueVector *)NULL,::std::pair<sal_Int32,Reference<XRow> >(0,(Reference<XRow>)NULL));
|
||||
OKeySetValue keySetValue((ORowSetValueVector *)NULL,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>()));
|
||||
m_aKeyMap.insert(OKeySetMatrix::value_type(0,keySetValue));
|
||||
m_aKeyIter = m_aKeyMap.begin();
|
||||
}
|
||||
@@ -893,7 +893,7 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ
|
||||
ORowSetRow aKeyRow = new connectivity::ORowVector< ORowSetValue >(m_pKeyColumnNames->size());
|
||||
copyRowValue(_rInsertRow,aKeyRow,aKeyIter->first + 1);
|
||||
|
||||
m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(aKeyIter->first + 1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(1,(Reference<XRow>)NULL)))).first;
|
||||
m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(aKeyIter->first + 1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(1,Reference<XRow>())))).first;
|
||||
// now we set the bookmark for this row
|
||||
(_rInsertRow->get())[0] = makeAny((sal_Int32)m_aKeyIter->first);
|
||||
tryRefetch(_rInsertRow,bRefetch);
|
||||
@@ -1448,7 +1448,7 @@ bool OKeySet::fetchRow()
|
||||
const SelectColumnDescription& rColDesc = aPosIter->second;
|
||||
aIter->fill(rColDesc.nPosition, rColDesc.nType, m_xRow);
|
||||
}
|
||||
m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(m_aKeyMap.rbegin()->first+1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(0,(Reference<XRow>)NULL)))).first;
|
||||
m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(m_aKeyMap.rbegin()->first+1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())))).first;
|
||||
}
|
||||
else
|
||||
m_bRowCountFinal = true;
|
||||
|
||||
Reference in New Issue
Block a user