summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-11-11 15:53:00 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-11-15 14:24:28 +0100
commit8225af03d17982d7340af575adf530d4c5a2a852 (patch)
tree2927dfed9ea41f08cd4ac3ef3ddb1bcacd21e859
parentaa96fedb5fa9a99ebfdad51bf643a2e9403834af (diff)
downloadqtdoc-8225af03d17982d7340af575adf530d4c5a2a852.tar.gz
Port from container::count() and length() to size() - V5
This is a the same semantic patch (qt-port-to-std-compatible-api V5 with config Scope: 'Container') as in dev. I've re-ran it in 6.4 to avoid cherry-pick conflicts. Change-Id: Ie6a083dbb29c0dd9ccd8a1acaedba2a848f2a2eb Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r--tests/auto/quick/examples/tst_examples.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/examples/tst_examples.cpp b/tests/auto/quick/examples/tst_examples.cpp
index 3c791c6b..99969ae6 100644
--- a/tests/auto/quick/examples/tst_examples.cpp
+++ b/tests/auto/quick/examples/tst_examples.cpp
@@ -109,7 +109,7 @@ to have them tested by the examples() test.
*/
void tst_examples::namingConvention(const QDir &d)
{
- for (int ii = 0; ii < excludedDirs.count(); ++ii) {
+ for (int ii = 0; ii < excludedDirs.size(); ++ii) {
QString s = excludedDirs.at(ii);
if (d.absolutePath().endsWith(s))
return;
@@ -163,7 +163,7 @@ void tst_examples::namingConvention()
QStringList tst_examples::findQmlFiles(const QDir &d)
{
- for (int ii = 0; ii < excludedDirs.count(); ++ii) {
+ for (int ii = 0; ii < excludedDirs.size(); ++ii) {
QString s = excludedDirs.at(ii);
if (d.absolutePath().endsWith(s))
return QStringList();
@@ -178,7 +178,7 @@ QStringList tst_examples::findQmlFiles(const QDir &d)
foreach (const QString &file, files) {
if (file.at(0).isLower()) {
bool superContinue = false;
- for (int ii = 0; ii < excludedFiles.count(); ++ii) {
+ for (int ii = 0; ii < excludedFiles.size(); ++ii) {
QString e = excludedFiles.at(ii);
if (d.absoluteFilePath(file).endsWith(e)) {
superContinue = true;