[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:37 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=11a9367
The following commit has been merged in the master branch:
commit 11a9367e37a96ff3800ea4275df35cc627707e8b
Author: Aleix Pol <aleixpol at kde.org>
Date: Wed Sep 11 01:52:26 2013 +0200
Optimization on the ContactIdentifier hash
Reduce ContactIdentifier copies
Use the same return value as the rest of the qHash() functions
Reviewed by Vishesh Handa
---
kpeople/nepomuk-feeder/nepomuk-storage.cpp | 2 +-
kpeople/nepomuk-feeder/nepomuk-storage.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kpeople/nepomuk-feeder/nepomuk-storage.cpp b/kpeople/nepomuk-feeder/nepomuk-storage.cpp
index 3f5b1fb..37056d4 100644
--- a/kpeople/nepomuk-feeder/nepomuk-storage.cpp
+++ b/kpeople/nepomuk-feeder/nepomuk-storage.cpp
@@ -780,7 +780,7 @@ void NepomukStorage::onContactGraphJob(KJob *job)
}
-int qHash(ContactIdentifier c)
+uint qHash(const ContactIdentifier& c)
{
// FIXME: This is a shit way of doing it.
QString temp;
diff --git a/kpeople/nepomuk-feeder/nepomuk-storage.h b/kpeople/nepomuk-feeder/nepomuk-storage.h
index ae062bb..e31f3c0 100644
--- a/kpeople/nepomuk-feeder/nepomuk-storage.h
+++ b/kpeople/nepomuk-feeder/nepomuk-storage.h
@@ -86,7 +86,7 @@ private:
QSharedDataPointer<Data> d;
};
-int qHash(ContactIdentifier c);
+uint qHash(const ContactIdentifier& c);
class ContactResources {
public:
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list