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 /src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp | |
| 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 'src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp')
| -rw-r--r-- | src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp b/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp index 554ab0119e1..967f567a6da 100644 --- a/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp +++ b/src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp @@ -367,7 +367,7 @@ static void parseCmdLine(QStringList &arguments) if (!arg.startsWith(QLatin1Char('-'))) continue; - char c = arg.count() == 2 ? arg.at(1).toLatin1() : char(0); + char c = arg.size() == 2 ? arg.at(1).toLatin1() : char(0); switch (c) { case 'P': flags |= QDBusConnection::ExportNonScriptableProperties; |
