[Kst] branches/kst/1.3/kst/src/libkstapp
George Staikos
staikos at kde.org
Sat Sep 16 01:36:04 CEST 2006
SVN commit 584992 by staikos:
merge fix from Adam for uninit variable
M +9 -0 extensionmgr.cpp
M +1 -1 extensionmgr.h
--- branches/kst/1.3/kst/src/libkstapp/extensionmgr.cpp #584991:584992
@@ -78,6 +78,15 @@
}
+KstExtension *ExtensionMgr::extension(const QString& name) const {
+ QMap<QString,KstExtension*>::ConstIterator i = _registry.find(name);
+ if (i != _registry.end()) {
+ return *i;
+ }
+ return 0L;
+}
+
+
void ExtensionMgr::loadExtension(const QString& name) {
KService::List sl = KServiceType::offers("Kst Extension");
for (KService::List::ConstIterator it = sl.begin(); it != sl.end(); ++it) {
--- branches/kst/1.3/kst/src/libkstapp/extensionmgr.h #584991:584992
@@ -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