summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-11 13:41:26 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-05-11 13:41:47 (GMT)
commit0ce24108aa20a38e53a7f307231a6752f89ef65a (patch)
tree522e2681d9a6e17e819c59511d95b63f60a49a06 /doc
parent0e39de7aa9b081ad63a6f3b423841dd22a7293e6 (diff)
downloadQt-0ce24108aa20a38e53a7f307231a6752f89ef65a.zip
Qt-0ce24108aa20a38e53a7f307231a6752f89ef65a.tar.gz
Qt-0ce24108aa20a38e53a7f307231a6752f89ef65a.tar.bz2
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
Diffstat (limited to 'doc')
-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 ae176ac..06afa0c 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]