summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-11 15:41:26 +0200
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-11 15:41:47 +0200
commit0ce24108aa20a38e53a7f307231a6752f89ef65a (patch)
tree522e2681d9a6e17e819c59511d95b63f60a49a06
parent0e39de7aa9b081ad63a6f3b423841dd22a7293e6 (diff)
downloadqt4-tools-0ce24108aa20a38e53a7f307231a6752f89ef65a.tar.gz
Correcting bug in custom Database Driver code snipptet
Adding const to call. Changing QSqlRecord record() { return QSqlRecord(); } to QSqlRecord record() const { return QSqlRecord(); } This is needed since record() is a virtual function. Task-number:204557 Rev-by: Geir Vattekar
-rw-r--r--doc/src/snippets/sqldatabase/sqldatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/sqldatabase/sqldatabase.cpp b/doc/src/snippets/sqldatabase/sqldatabase.cpp
index ae176acab0..06afa0c94f 100644
--- a/doc/src/snippets/sqldatabase/sqldatabase.cpp
+++ b/doc/src/snippets/sqldatabase/sqldatabase.cpp
@@ -524,7 +524,7 @@ protected:
bool fetchLast() { return false; }
int size() { return 0; }
int numRowsAffected() { return 0; }
- QSqlRecord record() { return QSqlRecord(); }
+ QSqlRecord record() const { return QSqlRecord(); }
};
//! [47]