From 605c747321451e75c9e3d646c05f9a88ac40a8cb Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Fri, 25 Mar 2022 14:00:40 +0100 Subject: 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 --- tests/auto/corelib/io/qsettings/tst_qsettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/io/qsettings') 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; -- cgit v1.2.3