diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-03-04 15:56:34 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-03-12 01:05:45 +0100 |
commit | 65859635830b1476ce5c3e22f86438a08d4894cf (patch) | |
tree | 0f98ffe6b2859a864d4835480d0d02b6b0319e1e /tests/auto/sql/kernel | |
parent | 28d25144280503cf9131b6f9325d1d7f168af8d9 (diff) |
Deprecate {QString, QByteArray}::count()
And remove their uses.
[ChangeLog][QtCore][Deprecation Notice] Deprecated QString::count()
and QByteArray::count() that take no parameters, to avoid confusion
with the algorithm overloads of the same name. They can be replaced
by size() or length() methods.
Change-Id: I6541e3235ab58cf750d89568d66d3b1d9bbd4a04
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/sql/kernel')
-rw-r--r-- | tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp index 5b7b8f312b..d10396b941 100644 --- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp +++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp @@ -844,9 +844,9 @@ void tst_QSqlQuery::oraClob() QVERIFY_SQL(q, exec(QLatin1String("select bl, cl from %1 where id = 3").arg(clobby))); QVERIFY(q.next()); - QCOMPARE(q.value(0).toString().count(), loong.count()); + QCOMPARE(q.value(0).toString().size(), loong.size()); QVERIFY(q.value(0).toString() == loong); // Deliberately not QCOMPARE() as too long - QCOMPARE(q.value(1).toByteArray().count(), loong.toLatin1().count()); + QCOMPARE(q.value(1).toByteArray().size(), loong.toLatin1().size()); QVERIFY(q.value(1).toByteArray() == loong.toLatin1()); // ditto } @@ -868,7 +868,7 @@ void tst_QSqlQuery::oraClobBatch() QVERIFY_SQL(q, exec("select cl from " + clobBatch)); QVERIFY(q.next()); - QCOMPARE(q.value(0).toString().count(), longString.size()); + QCOMPARE(q.value(0).toString().size(), longString.size()); QVERIFY(q.value(0).toString() == longString); // As above. deliberately not QCOMPARE(). } |