[Kst] extragear/graphics/kst/src/libkstapp
Adam Treat
treat at kde.org
Fri Sep 15 22:41:13 CEST 2006
SVN commit 584926 by treat:
* Fix conditional jump without initialization spotted by valgrind
M +7 -0 extensionmgr.cpp
M +1 -1 extensionmgr.h
--- trunk/extragear/graphics/kst/src/libkstapp/extensionmgr.cpp #584925:584926
@@ -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");
--- trunk/extragear/graphics/kst/src/libkstapp/extensionmgr.h #584925:584926
@@ -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