better use of value and contains; thanks Hermier! =)
svn path=/trunk/KDE/kdelibs/; revision=895572
This commit is contained in:
parent
c98d3aacf5
commit
ee776a8367
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user