User: hr      
Date: 06/06/19 19:34:31

Modified:
 /dba/dbaccess/source/core/api/
  CacheSet.cxx

Log:
 INTEGRATION: CWS warnings01 (1.40.74); FILE MERGED
 2006/03/24 15:35:45 fs 1.40.74.1: #i57457# warning-free code (unxlngi6/.pro + 
unxsoli4.pro)

File Changes:

Directory: /dba/dbaccess/source/core/api/
=========================================

File [changed]: CacheSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/CacheSet.cxx?r1=1.40&r2=1.41
Delta lines:  +4 -6
-------------------
--- CacheSet.cxx        23 Sep 2005 12:01:45 -0000      1.40
+++ CacheSet.cxx        20 Jun 2006 02:34:29 -0000      1.41
@@ -412,9 +412,6 @@
        ::rtl::OUString aQuote  = getIdentifierQuoteString();
        static ::rtl::OUString aAnd             = 
::rtl::OUString::createFromAscii(" AND ");
 
-       sal_Int32 i = 1;
-       ORowVector< ORowSetValue >::const_iterator aIter = 
_rDeleteRow->begin()+1;
-
        // use keys and indexes for excat postioning
        // first the keys
        Reference<XKeysSupplier> xKeySup(_xTable,UNO_QUERY);
@@ -475,7 +472,7 @@
        // now create end execute the prepared statement
        Reference< XPreparedStatement > 
xPrep(m_xConnection->prepareStatement(aSql));
        Reference< XParameters > xParameter(xPrep,UNO_QUERY);
-       i = 1;
+       sal_Int32 i = 1;
        for(::std::list< sal_Int32>::const_iterator j = aOrgValues.begin(); j 
!= aOrgValues.end();++j,++i)
        {
                setParameter(i,xParameter,(*_rDeleteRow)[*j]);
@@ -575,10 +572,11 @@
 // -------------------------------------------------------------------------
 void OCacheSet::fillValueRow(ORowSetRow& _rRow,sal_Int32 _nPosition)
 {
-       connectivity::ORowVector< ORowSetValue >::iterator aIter = 
_rRow->begin();
-       Any aBookmark = getBookmark(_rRow);
+       Any aBookmark = getBookmark();
        if(!aBookmark.hasValue())
                aBookmark = makeAny(_nPosition);
+
+    connectivity::ORowVector< ORowSetValue >::iterator aIter = _rRow->begin();
        (*aIter) = aBookmark;
        ++aIter;
        for(sal_Int32 i=1;aIter != _rRow->end();++aIter,++i)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to