mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
xconfig: clean up
@ok is a pointer to a bool var, so we should check the value of *ok. But actually we don't need to check it, so just remove the if statement. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
c10d03caf3
commit
c1f96f091e
1 changed files with 4 additions and 5 deletions
|
@ -58,11 +58,10 @@ QValueList<int> ConfigSettings::readSizes(const QString& key, bool *ok)
|
||||||
{
|
{
|
||||||
QValueList<int> result;
|
QValueList<int> result;
|
||||||
QStringList entryList = readListEntry(key, ok);
|
QStringList entryList = readListEntry(key, ok);
|
||||||
if (ok) {
|
|
||||||
QStringList::Iterator it;
|
QStringList::Iterator it;
|
||||||
|
|
||||||
for (it = entryList.begin(); it != entryList.end(); ++it)
|
for (it = entryList.begin(); it != entryList.end(); ++it)
|
||||||
result.push_back((*it).toInt());
|
result.push_back((*it).toInt());
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue