[Kst] branches/work/kst/pluginify/kst/src/libkstapp
Adam Treat
treat at kde.org
Tue Sep 12 19:20:40 CEST 2006
SVN commit 583567 by treat:
* fix conditional with unitialized value
M +7 -0 extensionmgr.cpp
M +1 -1 extensionmgr.h
--- branches/work/kst/pluginify/kst/src/libkstapp/extensionmgr.cpp #583566:583567
@@ -77,6 +77,13 @@
// extensions as they are handled automatically...
}
+KstExtension *ExtensionMgr::extension(const QString& name) const {
+ QMap<QString,KstExtension*>::const_iterator i = _registry.find(name);
+ if ( i != _registry.end() )
+ return *i;
+ else
+ return 0;
+}
void ExtensionMgr::loadExtension(const QString& name) {
KService::List sl = KServiceType::offers("Kst Extension");
--- branches/work/kst/pluginify/kst/src/libkstapp/extensionmgr.h #583566:583567
@@ -38,7 +38,7 @@
bool enabled(const QString& extension) { return _extensions.contains(extension) && _extensions[extension]; }
void updateExtensions();
- KstExtension *extension(const QString& name) const { return *_registry.find(name); }
+ KstExtension *extension(const QString& name) const;
void doRegister(const QString& name, KstExtension *inst);
void unregister(KstExtension *inst);
More information about the Kst
mailing list