summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlcachedresult_p.h
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-06-05 13:50:03 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-06 13:23:51 +0200
commitfc15a1d5e2cb064df7b6e7b9e821e9db20a91b85 (patch)
tree45355e4d5426f63c158353b0dea18457c76dbf6c /src/sql/kernel/qsqlcachedresult_p.h
parent637ecd571f10bbab36b3321edb0479d79a542ddb (diff)
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 <bill.king@nokia.com> Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src/sql/kernel/qsqlcachedresult_p.h')
-rw-r--r--src/sql/kernel/qsqlcachedresult_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqlcachedresult_p.h b/src/sql/kernel/qsqlcachedresult_p.h
index 9feaa54999..1fcd62b44f 100644
--- a/src/sql/kernel/qsqlcachedresult_p.h
+++ b/src/sql/kernel/qsqlcachedresult_p.h
@@ -90,6 +90,8 @@ protected:
ValueCache &cache();
void virtual_hook(int id, void *data);
+ void detachFromResultSet();
+ void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy);
private:
bool cacheNext();
QSqlCachedResultPrivate *d;