Commit c1f96f09 authored by Li Zefan's avatar Li Zefan Committed by Michal Marek

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent c10d03ca
...@@ -58,11 +58,10 @@ QValueList<int> ConfigSettings::readSizes(const QString& key, bool *ok) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment