aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-10-06 14:38:23 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2022-10-14 08:38:07 +0000
commit5499319bd5edbee1b10bdbaa4f4b286cf398f492 (patch)
tree9e23ba8e9455ab8cdc57085ad99aa1c20a6d3df8
parenta29bbf5568bf651b076f051720a98e9d0297faa9 (diff)
Do not use QString::count()
It's deprecated in Qt 6.4. Change-Id: I8daa6fc7fffbe80938dd3cc64168bfd9471f85f4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/lib/corelib/generators/generatorutils.cpp2
-rw-r--r--src/plugins/generator/iarew/iarewutils.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/generators/generatorutils.cpp b/src/lib/corelib/generators/generatorutils.cpp
index c49e1fa75..de283755c 100644
--- a/src/lib/corelib/generators/generatorutils.cpp
+++ b/src/lib/corelib/generators/generatorutils.cpp
@@ -222,7 +222,7 @@ static QString parseFlagValue(const QString &flagKey,
return parts.at(1).trimmed();
} else if (flagKey < *flagIt) {
// In this case an option is in form of 'flagKey<flagValue>'.
- return flagIt->mid(flagKey.count()).trimmed();
+ return flagIt->mid(flagKey.size()).trimmed();
} else {
// In this case an option is in form of 'flagKey <flagValue>'.
++flagIt;
diff --git a/src/plugins/generator/iarew/iarewutils.cpp b/src/plugins/generator/iarew/iarewutils.cpp
index 7196a391c..9d39ab264 100644
--- a/src/plugins/generator/iarew/iarewutils.cpp
+++ b/src/plugins/generator/iarew/iarewutils.cpp
@@ -105,9 +105,9 @@ QString flagValue(const QStringList &flags, const QString &flagKey)
// Check that option is in form of 'flagKey=<flagValue>'.
if (flagIt->contains(QLatin1Char('='))) {
value = flagIt->split(QLatin1Char('=')).at(1).trimmed();
- } else if (flagKey.count() < flagIt->count()) {
+ } else if (flagKey.size() < flagIt->size()) {
// In this case an option is in form of 'flagKey<flagValue>'.
- value = flagIt->mid(flagKey.count()).trimmed();
+ value = flagIt->mid(flagKey.size()).trimmed();
} else {
// In this case an option is in form of 'flagKey <flagValue>'.
++flagIt;