[SCM] ktp-contact-runner packaging branch, master, updated. debian/15.12.1-2-244-g38a1f58

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 17:50:27 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-runner.git;a=commitdiff;h=001767a

The following commit has been merged in the master branch:
commit 001767a8fc98d169523b691e4269da8a33466112
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Fri May 4 11:17:13 2012 +0200

    Fix krazy char issues
    
    Always use single quotes when adding one char to QString => Faster
---
 src/contactrunner.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/contactrunner.cpp b/src/contactrunner.cpp
index 416b160..2687ce1 100644
--- a/src/contactrunner.cpp
+++ b/src/contactrunner.cpp
@@ -114,7 +114,7 @@ QList< QAction* > ContactRunner::actionsForMatch(const Plasma::QueryMatch &match
     /* Remove the ID prefix added by Krunner */
     QString id = match.id().remove("KRunnerKTpContacts_");
 
-    QStringList ids = id.split(",", QString::SkipEmptyParts);
+    QStringList ids = id.split(',', QString::SkipEmptyParts);
     if (ids.count() != 2) {
         kWarning() << "Received invalid ID" << ids;
         return actions;
@@ -214,7 +214,7 @@ void ContactRunner::match(Plasma::RunnerContext &context)
             }
 
             match.setText(name.append(" (%1)").arg(accountIndex.data(AccountsModel::DisplayNameRole).toString()));
-            match.setId(accountIndex.data(AccountsModel::IdRole).toString() + "," +
+            match.setId(accountIndex.data(AccountsModel::IdRole).toString() + ',' +
                         contactIndex.data(AccountsModel::IdRole).toString());
             match.setType(Plasma::QueryMatch::ExactMatch);
 
@@ -276,7 +276,7 @@ void ContactRunner::run(const Plasma::RunnerContext &context, const Plasma::Quer
     /* Remove the ID prefix added by Krunner */
     QString id = match.id().remove("KRunnerKTpContacts_");
 
-    QStringList ids = id.split(",", QString::SkipEmptyParts);
+    QStringList ids = id.split(',', QString::SkipEmptyParts);
     if (ids.count() != 2) {
         kWarning() << "Received invalid ID" << ids;
         return;

-- 
ktp-contact-runner packaging



More information about the pkg-kde-commits mailing list