diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-25 14:00:40 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-30 21:37:24 +0200 |
commit | 605c747321451e75c9e3d646c05f9a88ac40a8cb (patch) | |
tree | 76c61e34d86aa72f49a34bbb903ff6496174c48a /src/corelib/io/qsettings_p.h | |
parent | 08d20ee85092851547fb4dfee67e98bf7b37c936 (diff) |
QSettingsPrivate: fold from/to parameters into the view they bound
Two methods of the private class used to take a QByteArray with from
and to indices into it, for where to start and stop a scan. Now that
they take a QByteArrayView, those parameters can be used by the caller
to shorten the view to the desired portion.
Change-Id: Id1586afb87a9e8a189b69e485278375ff504fb7b
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/corelib/io/qsettings_p.h')
-rw-r--r-- | src/corelib/io/qsettings_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qsettings_p.h b/src/corelib/io/qsettings_p.h index a74e20ef55..eea8361786 100644 --- a/src/corelib/io/qsettings_p.h +++ b/src/corelib/io/qsettings_p.h @@ -231,11 +231,11 @@ public: static QString variantToString(const QVariant &v); static QVariant stringToVariant(const QString &s); static void iniEscapedKey(const QString &key, QByteArray &result); - static bool iniUnescapedKey(QByteArrayView key, int from, int to, QString &result); + static bool iniUnescapedKey(QByteArrayView key, QString &result); static void iniEscapedString(const QString &str, QByteArray &result); static void iniEscapedStringList(const QStringList &strs, QByteArray &result); - static bool iniUnescapedStringList(QByteArrayView str, int from, int to, - QString &stringResult, QStringList &stringListResult); + static bool iniUnescapedStringList(QByteArrayView str, QString &stringResult, + QStringList &stringListResult); static QStringList splitArgs(const QString &s, int idx); QSettings::Format format; |