summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlresult.cpp
Unidiff
Diffstat (limited to 'libopie2/opiedb/osqlresult.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiedb/osqlresult.cpp8
1 files changed, 4 insertions, 4 deletions
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
@@ -22,27 +22,27 @@ OSQLResultItem &OSQLResultItem::operator=( const OSQLResultItem& other) {
22OSQLResultItem::TableString OSQLResultItem::tableString()const{ 22OSQLResultItem::TableString OSQLResultItem::tableString()const{
23 return m_string; 23 return m_string;
24} 24}
25OSQLResultItem::TableInt OSQLResultItem::tableInt()const { 25OSQLResultItem::TableInt OSQLResultItem::tableInt()const {
26 return m_int; 26 return m_int;
27} 27}
28QString OSQLResultItem::data( const QString& columnName, bool *ok ) { 28QString OSQLResultItem::data( const QString& columnName, bool *ok ) const {
29 TableString::Iterator it = m_string.find( columnName ); 29 TableString::ConstIterator it = m_string.find( columnName );
30 30
31 /* if found */ 31 /* if found */
32 if ( it != m_string.end() ) { 32 if ( it != m_string.end() ) {
33 if ( ok ) *ok = true; 33 if ( ok ) *ok = true;
34 return it.data(); 34 return it.data();
35 }else{ 35 }else{
36 if ( ok ) *ok = false; 36 if ( ok ) *ok = false;
37 return QString::null; 37 return QString::null;
38 } 38 }
39 39
40} 40}
41QString OSQLResultItem::data( int column, bool *ok ) { 41QString OSQLResultItem::data( int column, bool *ok ) const {
42 TableInt::Iterator it = m_int.find( column ); 42 TableInt::ConstIterator it = m_int.find( column );
43 43
44 /* if found */ 44 /* if found */
45 if ( it != m_int.end() ) { 45 if ( it != m_int.end() ) {
46 if ( ok ) *ok = true; 46 if ( ok ) *ok = true;
47 return it.data(); 47 return it.data();
48 }else{ 48 }else{