From 5492b75e9547103f1614fd82255a9a31358cb978 Mon Sep 17 00:00:00 2001 From: Anne-Marie Mahfouf Date: Thu, 24 Apr 2008 08:10:30 +0000 Subject: [PATCH] API review: clearData() -> removeAllData() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800422 --- dataengine.cpp | 2 +- dataengine.h | 4 ++-- scripting/dataenginescript.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dataengine.cpp b/dataengine.cpp index 6d96b9ddc..37dc60bc1 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -387,7 +387,7 @@ void DataEngine::setData(const QString &source, const Data &data) } -void DataEngine::clearData(const QString& source) +void DataEngine::removeAllData(const QString& source) { DataContainer* s = d->source(source, false); if (s) { diff --git a/dataengine.h b/dataengine.h index 96264deb6..9788c69f5 100644 --- a/dataengine.h +++ b/dataengine.h @@ -286,11 +286,11 @@ class PLASMA_EXPORT DataEngine : public QObject void setData(const QString &source, const Data &data); /** - * Clears all the data associated with a data source. + * Removes all the data associated with a data source. * * @param source the name of the data source **/ - void clearData(const QString& source); + void removeAllData(const QString& source); /** * Removes a data entry from a source diff --git a/scripting/dataenginescript.cpp b/scripting/dataenginescript.cpp index 92b0c82b3..c2ff49046 100644 --- a/scripting/dataenginescript.cpp +++ b/scripting/dataenginescript.cpp @@ -81,7 +81,7 @@ void DataEngineScript::setData(const QString &source, const QVariant &value) void DataEngineScript::clearData(const QString& source) { if (d->dataEngine) { - d->dataEngine->clearData(source); + d->dataEngine->removeAllData(source); } }