From ee776a8367df0ba896faac3be6a3bb0978f91f6f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 11 Dec 2008 02:50:06 +0000 Subject: [PATCH] better use of value and contains; thanks Hermier! =) svn path=/trunk/KDE/kdelibs/; revision=895572 --- runnermanager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runnermanager.cpp b/runnermanager.cpp index 0fcf3863a..6c8dbdb2a 100644 --- a/runnermanager.cpp +++ b/runnermanager.cpp @@ -346,11 +346,7 @@ AbstractRunner *RunnerManager::runner(const QString &name) const d->loadRunners(); } - if (d->runners.contains(name)) { - return d->runners.value(name); - } - - return 0; + return d->runners.value(name, 0); } RunnerContext *RunnerManager::searchContext() const