better use of value and contains; thanks Hermier! =)

svn path=/trunk/KDE/kdelibs/; revision=895572
This commit is contained in:
Aaron J. Seigo 2008-12-11 02:50:06 +00:00
parent c98d3aacf5
commit ee776a8367

View File

@ -346,11 +346,7 @@ AbstractRunner *RunnerManager::runner(const QString &name) const
d->loadRunners(); d->loadRunners();
} }
if (d->runners.contains(name)) { return d->runners.value(name, 0);
return d->runners.value(name);
}
return 0;
} }
RunnerContext *RunnerManager::searchContext() const RunnerContext *RunnerManager::searchContext() const