summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Lemanissier <[email protected]>2016-02-15 17:33:43 +0100
committerEric Lemanissier <[email protected]>2016-02-16 21:22:19 +0000
commit21d19f760c1c9b6c225cb54260ef1bb691ef2e65 (patch)
tree7807c221dd52814b82d6af084342ce724f5f8732
parent273114582aaa944b4a22f1782cc5799fdd1e8e7b (diff)
Improve sql allocated cache reuse
This change avoids unnecessary allocation of QSqlCachedResult cache. Change-Id: Ief592ab05b50f5e328490c504af088ec74d1938f Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Mark Brand <[email protected]>
-rw-r--r--src/sql/kernel/qsqlcachedresult.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqlcachedresult.cpp b/src/sql/kernel/qsqlcachedresult.cpp
index 3bacffed75d..c335d7d8fe7 100644
--- a/src/sql/kernel/qsqlcachedresult.cpp
+++ b/src/sql/kernel/qsqlcachedresult.cpp
@@ -267,7 +267,6 @@ bool QSqlCachedResult::cacheNext()
return false;
if(isForwardOnly()) {
- d->cache.clear();
d->cache.resize(d->colCount);
}