From 73e7fc2d8e6084af71ee31d88621305e0dc67b1d Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Wed, 16 Mar 2022 14:50:59 +0100 Subject: Fix a few more {QString, QByteArray}::count() deprecation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0be2d5e7a8f6af3bc1077ae6d1f20cc5da8f2266 Reviewed-by: MÃ¥rten Nordheim --- src/corelib/plugin/qlibrary_unix.cpp | 2 +- src/gui/util/qedidparser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/corelib/plugin/qlibrary_unix.cpp b/src/corelib/plugin/qlibrary_unix.cpp index c119bee2fc..17248c8b3f 100644 --- a/src/corelib/plugin/qlibrary_unix.cpp +++ b/src/corelib/plugin/qlibrary_unix.cpp @@ -230,7 +230,7 @@ bool QLibraryPrivate::load_sys() attempt = name; int lparen = attempt.indexOf(QLatin1Char('(')); if (lparen == -1) - lparen = attempt.count(); + lparen = attempt.size(); attempt = path + prefixes.at(prefix) + attempt.insert(lparen, suffixes.at(suffix)); } else { attempt = path + prefixes.at(prefix) + name + suffixes.at(suffix); diff --git a/src/gui/util/qedidparser.cpp b/src/gui/util/qedidparser.cpp index db5ccf1772..690f072d85 100644 --- a/src/gui/util/qedidparser.cpp +++ b/src/gui/util/qedidparser.cpp @@ -272,7 +272,7 @@ QString QEdidParser::parseEdidString(const quint8 *data) buffer = buffer.replace('\r', '\0').replace('\n', '\0'); // Replace non-printable characters with dash - for (int i = 0; i < buffer.count(); ++i) { + for (int i = 0; i < buffer.size(); ++i) { if (buffer[i] < '\040' || buffer[i] > '\176') buffer[i] = '-'; } -- cgit v1.2.3