From f8d94a98b8982cbc85003d1050caa355465673f1 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 19 Sep 2011 08:01:40 +0200 Subject: [PATCH] use a hash instead of a map: the sorting was irrelevant and the API that uses this was ported to hashes as well --- private/storagethread.cpp | 8 ++++---- private/storagethread_p.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/private/storagethread.cpp b/private/storagethread.cpp index 58a6c7c58..417e2ff66 100644 --- a/private/storagethread.cpp +++ b/private/storagethread.cpp @@ -83,7 +83,7 @@ void StorageThread::initializeDb(StorageJob *caller) m_db.transaction(); } -void StorageThread::save(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::save(QWeakPointer wcaller, const QVariantHash ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -185,7 +185,7 @@ void StorageThread::save(QWeakPointer wcaller, const QVariantMap &pa emit newResult(caller, true); } -void StorageThread::retrieve(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::retrieve(QWeakPointer wcaller, const QVariantHash ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -259,7 +259,7 @@ void StorageThread::retrieve(QWeakPointer wcaller, const QVariantMap emit newResult(caller, result); } -void StorageThread::deleteEntry(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::deleteEntry(QWeakPointer wcaller, const QVariantHash ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -289,7 +289,7 @@ void StorageThread::deleteEntry(QWeakPointer wcaller, const QVariant emit newResult(caller, success); } -void StorageThread::expire(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::expire(QWeakPointer wcaller, const QVariantHash ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { diff --git a/private/storagethread_p.h b/private/storagethread_p.h index 5a67e8f90..bfbcc101b 100644 --- a/private/storagethread_p.h +++ b/private/storagethread_p.h @@ -42,10 +42,10 @@ public: static Plasma::StorageThread *self(); public Q_SLOTS: - void save(QWeakPointer caller, const QVariantMap ¶meters); - void retrieve(QWeakPointer caller, const QVariantMap ¶meters); - void deleteEntry(QWeakPointer caller, const QVariantMap ¶meters); - void expire(QWeakPointer caller, const QVariantMap ¶meters); + void save(QWeakPointer caller, const QVariantHash ¶meters); + void retrieve(QWeakPointer caller, const QVariantHash ¶meters); + void deleteEntry(QWeakPointer caller, const QVariantHash ¶meters); + void expire(QWeakPointer caller, const QVariantHash ¶meters); Q_SIGNALS: void newResult(StorageJob* caller, const QVariant &result);