From dd159675e6e3c361bc20eaa6994265e73b6599ef Mon Sep 17 00:00:00 2001 From: eilers Date: Sun, 29 Aug 2004 12:42:03 +0000 Subject: Minor but important changes in API. Improved SQL performance: contactsbackend now supports look-ahead caching to speed up access. Fixed and improved look-ahead cache in todo-backend. Datebook backend will follow, soon ! --- (limited to 'libopie2/opiedb/osqlresult.cpp') diff --git a/libopie2/opiedb/osqlresult.cpp b/libopie2/opiedb/osqlresult.cpp index bad7d8b..268ac8e 100644 --- a/libopie2/opiedb/osqlresult.cpp +++ b/libopie2/opiedb/osqlresult.cpp @@ -25,8 +25,8 @@ OSQLResultItem::TableString OSQLResultItem::tableString()const{ OSQLResultItem::TableInt OSQLResultItem::tableInt()const { return m_int; } -QString OSQLResultItem::data( const QString& columnName, bool *ok ) { - TableString::Iterator it = m_string.find( columnName ); +QString OSQLResultItem::data( const QString& columnName, bool *ok ) const { + TableString::ConstIterator it = m_string.find( columnName ); /* if found */ if ( it != m_string.end() ) { @@ -38,8 +38,8 @@ QString OSQLResultItem::data( const QString& columnName, bool *ok ) { } } -QString OSQLResultItem::data( int column, bool *ok ) { - TableInt::Iterator it = m_int.find( column ); +QString OSQLResultItem::data( int column, bool *ok ) const { + TableInt::ConstIterator it = m_int.find( column ); /* if found */ if ( it != m_int.end() ) { -- cgit v0.9.0.2