[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krunner] src: RunnerManager: Simplify plugin loading code
From:       Vishesh Handa <me () vhanda ! in>
Date:       2015-10-29 15:43:00
Message-ID: E1ZrpLw-0001a3-1Y () scm ! kde ! org
[Download RAW message or body]

Git commit cbcca6bf31fd0c6179732a5e2a2986167f3eb47e by Vishesh Handa.
Committed on 29/10/2015 at 15:42.
Pushed by vhanda into branch 'master'.

RunnerManager: Simplify plugin loading code

Probably an artifact from the porting.

M  +1    -3    src/runnermanager.cpp

http://commits.kde.org/krunner/cbcca6bf31fd0c6179732a5e2a2986167f3eb47e

diff --git a/src/runnermanager.cpp b/src/runnermanager.cpp
index f580ae7..e1e8872 100644
--- a/src/runnermanager.cpp
+++ b/src/runnermanager.cpp
@@ -701,8 +701,6 @@ QMimeData * RunnerManager::mimeDataForMatch(const QueryMatch &match) const
 
 KPluginInfo::List RunnerManager::listRunnerInfo(const QString &parentApp)
 {
-    KPluginInfo::List list;
-
     QString constraint;
     if (parentApp.isEmpty()) {
         constraint.append("not exist [X-KDE-ParentApp]");
@@ -711,7 +709,7 @@ KPluginInfo::List RunnerManager::listRunnerInfo(const QString &parentApp)
     }
 
     KService::List offers = KServiceTypeTrader::self()->query("Plasma/Runner", constraint);
-    return list + KPluginInfo::fromServices(offers);
+    return KPluginInfo::fromServices(offers);
 }
 
 void RunnerManager::setupMatchSession()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic