From e435c15f14e0b345ba42a2e74e4ba5632cdb8d08 Mon Sep 17 00:00:00 2001 From: Anne-Marie Mahfouf Date: Thu, 24 Apr 2008 06:38:14 +0000 Subject: [PATCH] API review clearSources() -> removeAllSources() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800387 --- dataengine.cpp | 2 +- dataengine.h | 2 +- scripting/dataenginescript.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dataengine.cpp b/dataengine.cpp index 455179ba9..f03bda4a1 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -488,7 +488,7 @@ void DataEngine::removeSource(const QString& source) } } -void DataEngine::clearSources() +void DataEngine::removeAllSources() { QMutableHashIterator it(d->sources); while (it.hasNext()) { diff --git a/dataengine.h b/dataengine.h index 2a123fb05..58f299b00 100644 --- a/dataengine.h +++ b/dataengine.h @@ -361,7 +361,7 @@ class PLASMA_EXPORT DataEngine : public QObject /** * Removes all data sources **/ - void clearSources(); + void removeAllSources(); /** * Sets whether or not this engine is valid, e.g. can be used. diff --git a/scripting/dataenginescript.cpp b/scripting/dataenginescript.cpp index b22ec94ba..92b0c82b3 100644 --- a/scripting/dataenginescript.cpp +++ b/scripting/dataenginescript.cpp @@ -124,7 +124,7 @@ void DataEngineScript::setPollingInterval(uint frequency) void DataEngineScript::clearSources() { if (d->dataEngine) { - d->dataEngine->clearSources(); + d->dataEngine->removeAllSources(); } }