summaryrefslogtreecommitdiffstats
path: root/src/core5/text
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-16 12:33:47 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-03-16 12:42:37 +0100
commita742f73c31a7f0be43379c8f0b50ca6d46fab1a1 (patch)
tree786c690b47c5b5013e0658b7b80ce111cb54005a /src/core5/text
parenta0acb81aba85ee761a2b58686c002921ddbf0c11 (diff)
Remove uses of deprecated QString::count()
Change-Id: I14527f21c72d61dc8acd4aa1c5aee1b706b11c7d Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/core5/text')
-rw-r--r--src/core5/text/qregexp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core5/text/qregexp.cpp b/src/core5/text/qregexp.cpp
index 745ed78..9116500 100644
--- a/src/core5/text/qregexp.cpp
+++ b/src/core5/text/qregexp.cpp
@@ -4955,7 +4955,7 @@ QString QRegExp::errorString()
QString QRegExp::escape(const QString &str)
{
QString quoted;
- const int count = str.count();
+ const int count = str.size();
quoted.reserve(count * 2);
const QLatin1Char backslash('\\');
for (int i = 0; i < count; i++) {