[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:07:52 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=25cfc52

The following commit has been merged in the master branch:
commit 25cfc5231de95b5d7e7cff3630ee2276cc8eda07
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sat Nov 16 01:51:06 2013 +0100

    Add missing const &
---
 KTp/Models/kpeopletranslationproxy.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/KTp/Models/kpeopletranslationproxy.cpp b/KTp/Models/kpeopletranslationproxy.cpp
index 7f34009..2eceab0 100644
--- a/KTp/Models/kpeopletranslationproxy.cpp
+++ b/KTp/Models/kpeopletranslationproxy.cpp
@@ -58,7 +58,7 @@ QVariant KPeopleTranslationProxy::data(const QModelIndex &proxyIndex, int role)
 //         return QVariant();
 //     }
 //
-    KABC::Addressee contact = mapToSource(proxyIndex).data(KPeople::PersonsModel::PersonVCardRole).value<KABC::Addressee>();
+    const KABC::Addressee &contact = mapToSource(proxyIndex).data(KPeople::PersonsModel::PersonVCardRole).value<KABC::Addressee>();
 
     switch (role) {
         case KTp::ContactPresenceTypeRole:
@@ -72,6 +72,7 @@ QVariant KPeopleTranslationProxy::data(const QModelIndex &proxyIndex, int role)
         case KTp::RowTypeRole:
             if (mapToSource(proxyIndex).data(KPeople::PersonsModel::PersonIdRole)
                         .toString().startsWith((QLatin1String("kpeople://")))) {
+
                 return KTp::PersonRowType;
             } else {
                 return KTp::ContactRowType;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list