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 /tests/auto/corelib/io/qsettings/tst_qsettings.cpp | |
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 'tests/auto/corelib/io/qsettings/tst_qsettings.cpp')
-rw-r--r-- | tests/auto/corelib/io/qsettings/tst_qsettings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp index e8bef28c02..90d139ab8e 100644 --- a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp +++ b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp @@ -2715,7 +2715,7 @@ static QByteArray iniEscapedKey(const QString &str) static QString iniUnescapedKey(const QByteArray &ba) { QString result; - QSettingsPrivate::iniUnescapedKey(ba, 0, ba.size(), result); + QSettingsPrivate::iniUnescapedKey(ba, result); return result; } @@ -2730,7 +2730,7 @@ static QStringList iniUnescapedStringList(const QByteArray &ba) { QStringList result; QString str; - bool isStringList = QSettingsPrivate::iniUnescapedStringList(ba, 0, ba.size(), str, result); + bool isStringList = QSettingsPrivate::iniUnescapedStringList(ba, str, result); if (!isStringList) result = QStringList(str); return result; |