Correcting bug in custom Database Driver code snipptet
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>
Mon, 11 May 2009 13:41:26 +0000 (15:41 +0200)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>
Mon, 11 May 2009 13:41:47 +0000 (15:41 +0200)
commit0ce24108aa20a38e53a7f307231a6752f89ef65a
tree522e2681d9a6e17e819c59511d95b63f60a49a06
parent0e39de7aa9b081ad63a6f3b423841dd22a7293e6
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
doc/src/snippets/sqldatabase/sqldatabase.cpp