mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
use foreach() for iteration in QSettingsPrivate::variantListToStringList()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
4f4dba9d37
commit
b6bf8c0298
1 changed files with 2 additions and 3 deletions
|
@ -403,9 +403,8 @@ QStringList QSettingsPrivate::variantListToStringList(const QVariantList &l)
|
||||||
{
|
{
|
||||||
QStringList result;
|
QStringList result;
|
||||||
result.reserve(l.count());
|
result.reserve(l.count());
|
||||||
QVariantList::const_iterator it = l.constBegin();
|
foreach (const QVariant &v, l)
|
||||||
for (; it != l.constEnd(); ++it)
|
result.append(variantToString(v));
|
||||||
result.append(variantToString(*it));
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue