From fc15a1d5e2cb064df7b6e7b9e821e9db20a91b85 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Tue, 5 Jun 2012 13:50:03 +0200 Subject: QSqlResult: replace virtual hooks with virtual functions Instead of virtual functions which would have broken binary compatibility, virtual_hook() was used to implement the virtual functionality. Now, since the step to Qt 5.0 allows breaking binary compatibility, we take the opporunity to simplify the code using real virtual functions. SetNumericalPrecision --> setNumericalPrecisionPolicy() NextResult --> nextResult() DetachFromResultSet --> detachFromResultSet() BatchOperation --> execBatch() Task-number: QTBUG-25252 Change-Id: Idd3a870f876d8b8a7457559d5f31ec2073786a75 Reviewed-by: Bill King Reviewed-by: Harald Fernengel --- src/sql/drivers/odbc/qsql_odbc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sql/drivers/odbc/qsql_odbc.h') diff --git a/src/sql/drivers/odbc/qsql_odbc.h b/src/sql/drivers/odbc/qsql_odbc.h index a89ce0f9b3..6ae65a0805 100644 --- a/src/sql/drivers/odbc/qsql_odbc.h +++ b/src/sql/drivers/odbc/qsql_odbc.h @@ -104,6 +104,7 @@ protected: int numRowsAffected(); QSqlRecord record() const; void virtual_hook(int id, void *data); + void detachFromResultSet(); bool nextResult(); private: -- cgit v1.2.3