diff options
author | Dario Freddi <dario.freddi@collabora.com> | 2012-04-29 16:05:12 +0200 |
---|---|---|
committer | Dario Freddi <dario.freddi@collabora.com> | 2012-07-02 15:14:57 +0200 |
commit | c35aa1bbd819b2b1cb3dc2105d1088a5094f0458 (patch) | |
tree | f3a59059027768e73c1bdf9b07ceddc47cf68f27 | |
parent | 150282cee07f36ede17a77efdd67b9a83ad4cbe6 (diff) |
connection: Change QMap to QHash where possible
-rw-r--r-- | TelepathyQt/connection.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/TelepathyQt/connection.cpp b/TelepathyQt/connection.cpp index 6b898d1a..aa744331 100644 --- a/TelepathyQt/connection.cpp +++ b/TelepathyQt/connection.cpp @@ -46,7 +46,6 @@ #include <TelepathyQt/PendingVoid> #include <TelepathyQt/ReferencedHandles> -#include <QMap> #include <QMetaObject> #include <QMutex> #include <QMutexLocker> @@ -147,7 +146,7 @@ struct TP_QT_NO_EXPORT Connection::Private // misc // (Bus connection name, service name) -> HandleContext - static QMap<QPair<QString, QString>, HandleContext *> handleContexts; + static QHash<QPair<QString, QString>, HandleContext *> handleContexts; static QMutex handleContextsLock; HandleContext *handleContext; @@ -171,7 +170,7 @@ struct TP_QT_NO_EXPORT Connection::Private::HandleContext { struct Type { - QMap<uint, uint> refcounts; + QHash<uint, uint> refcounts; QSet<uint> toRelease; uint requestsInFlight; bool releaseScheduled; @@ -190,7 +189,7 @@ struct TP_QT_NO_EXPORT Connection::Private::HandleContext int refcount; QMutex lock; - QMap<uint, Type> types; + QHash<uint, Type> types; }; Connection::Private::Private(Connection *parent, @@ -771,7 +770,7 @@ void Connection::PendingConnect::onConnInvalidated(Tp::DBusProxy *proxy, const Q SLOT(onStatusChanged(Tp::ConnectionStatus))); } -QMap<QPair<QString, QString>, Connection::Private::HandleContext*> Connection::Private::handleContexts; +QHash<QPair<QString, QString>, Connection::Private::HandleContext*> Connection::Private::handleContexts; QMutex Connection::Private::handleContextsLock; /** |