diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-11 15:41:26 +0200 |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-11 15:41:47 +0200 |
commit | 0ce24108aa20a38e53a7f307231a6752f89ef65a (patch) | |
tree | 522e2681d9a6e17e819c59511d95b63f60a49a06 | |
parent | 0e39de7aa9b081ad63a6f3b423841dd22a7293e6 (diff) | |
download | qt4-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.cpp | 2 |
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] |