* we don't need our own Dict typedef here

* errorCode is no longer used
* get the debug output in line with similar msgs in plasma


svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668017
This commit is contained in:
Aaron J. Seigo 2007-05-24 19:57:31 +00:00
parent 5d1eb7f460
commit 14a1013a16
2 changed files with 3 additions and 5 deletions

View File

@ -79,10 +79,9 @@ Plasma::DataEngine* DataEngineManager::loadDataEngine(const QString& name)
return 0;
}
int errorCode = 0;
engine = KService::createInstance<Plasma::DataEngine>(offers.first(), 0);
if (!engine) {
kDebug() << errorCode << " couldn't load engine! " << name << endl;
kDebug() << "Couldn't load engine \"" << name << "\"!" << endl;
return 0;
}

View File

@ -27,9 +27,6 @@ namespace Plasma
class PLASMA_EXPORT DataEngineManager
{
public:
typedef QHash<QString, Plasma::DataEngine*> Dict;
public:
DataEngineManager();
~DataEngineManager();
@ -41,6 +38,8 @@ class PLASMA_EXPORT DataEngineManager
QStringList knownEngines() const;
private:
DataEngine::Dict m_engines;
class Private;
Private* const d;
};