[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/kexidb
From:       Laurent Montel <montel () kde ! org>
Date:       2009-01-15 12:29:37
Message-ID: 1232022577.967398.5093.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 911377 by mlaurent:

Fix iterator


 M  +2 -2      roweditbuffer.cpp  
 M  +1 -1      tableschema.cpp  


--- trunk/koffice/kexi/kexidb/roweditbuffer.cpp #911376:911377
@@ -73,7 +73,7 @@
         KexiDBWarn << "RowEditBuffer::at(Field&): this is db-aware buffer!";
         return 0;
     }
-    *m_simpleBufferIt = m_simpleBuffer->find(f.name());
+    *m_simpleBufferIt = m_simpleBuffer->constFind(f.name());
     if (*m_simpleBufferIt == m_simpleBuffer->constEnd())
         return 0;
     return &(*m_simpleBufferIt).value();
@@ -85,7 +85,7 @@
         KexiDBWarn << "RowEditBuffer::at(Field&): this is db-aware buffer!";
         return 0;
     }
-    *m_simpleBufferIt = m_simpleBuffer->find(fname);
+    *m_simpleBufferIt = m_simpleBuffer->constFind(fname);
     if (*m_simpleBufferIt == m_simpleBuffer->constEnd())
         return 0;
     return &(*m_simpleBufferIt).value();
--- trunk/koffice/kexi/kexidb/tableschema.cpp #911376:911377
@@ -421,7 +421,7 @@
     d->lookupFieldsList.resize(d->lookupFields.count());
     uint i = 0;
     foreach(Field* f, m_fields) {
-        QHash<const Field*, LookupFieldSchema*>::ConstIterator itMap = d->lookupFields.find(f);
+        QHash<const Field*, LookupFieldSchema*>::ConstIterator itMap = d->lookupFields.constFind(f);
         if (itMap != d->lookupFields.constEnd()) {
             d->lookupFieldsList.insert(i, itMap.value());
             i++;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic