dataenginemanager api review: get()->engine()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800256
This commit is contained in:
Chani Armitage 2008-04-23 19:05:47 +00:00
parent 970e72245c
commit 931d7b0d6c
3 changed files with 3 additions and 3 deletions

View File

@ -563,7 +563,7 @@ DataEngine* Applet::dataEngine(const QString& name) const
{
int index = d->loadedEngines.indexOf(name);
if (index != -1) {
return DataEngineManager::self()->get(name);
return DataEngineManager::self()->engine(name);
}
DataEngine* engine = DataEngineManager::self()->load(name);

View File

@ -92,7 +92,7 @@ DataEngineManager::~DataEngineManager()
delete d;
}
Plasma::DataEngine* DataEngineManager::get(const QString& name) const
Plasma::DataEngine* DataEngineManager::engine(const QString& name) const
{
Plasma::DataEngine::Dict::const_iterator it = d->engines.find(name);
if (it != d->engines.end()) {

View File

@ -55,7 +55,7 @@ class PLASMA_EXPORT DataEngineManager: public QObject
*
* @param name the name of the engine
*/
Plasma::DataEngine* get(const QString& name) const;
Plasma::DataEngine* engine(const QString& name) const;
/**
* Loads a data engine and increases the reference count on it.