we need a non-const object to lock, may as well make it a pointer as well since that's the common usage

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776952
This commit is contained in:
Aaron J. Seigo 2008-02-19 06:27:31 +00:00
parent 2e07ca5f64
commit b6767e1e39
2 changed files with 3 additions and 3 deletions

View File

@ -194,9 +194,9 @@ KService::List AbstractRunner::serviceQuery(const QString &serviceType, const QS
return KServiceTypeTrader::self()->query(serviceType, constraint);
}
const QMutex& AbstractRunner::bigLock() const
QMutex* AbstractRunner::bigLock() const
{
return Private::bigLock;
return &Private::bigLock;
}
void AbstractRunner::exec(const Plasma::SearchContext *search, const Plasma::SearchMatch *action)

View File

@ -215,7 +215,7 @@ class PLASMA_EXPORT AbstractRunner : public QObject
KService::List serviceQuery(const QString &serviceType,
const QString &constraint = QString()) const;
const QMutex& bigLock() const;
QMutex* bigLock() const;
protected slots:
void init();