summaryrefslogtreecommitdiffstats
path: root/sigtools/PluginLoader_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'sigtools/PluginLoader_p.h')
-rw-r--r--sigtools/PluginLoader_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sigtools/PluginLoader_p.h b/sigtools/PluginLoader_p.h
index 89c37cda..baa29871 100644
--- a/sigtools/PluginLoader_p.h
+++ b/sigtools/PluginLoader_p.h
@@ -27,6 +27,7 @@
// Qt includes
#include <QtCore/QObject>
#include <QtCore/QPair>
+#include <QtCore/QSharedPointer>
// Forward declarations
namespace Sigencore
@@ -57,14 +58,14 @@ class SIGTOOLS_NO_EXPORT Private : public QObject
QStringList services(const QString& type);
KService::Ptr service(const QString& type, const QString& name);
Sigencore::Plugins::PluginBase* factory(const QString& type, const QString& name);
- Sigmod::Game* game(const QString& name);
+ QSharedPointer<Sigmod::Game> game(const QString& name);
protected:
void clean(const QString& type);
typedef QPair<KService::Ptr, Sigencore::Plugins::PluginBase*> Service;
typedef QMap<QString, Service> PluginList;
QMap<QString, PluginList> m_available;
- QMap<QString, Sigmod::Game*> m_games;
+ QMap<QString, QSharedPointer<Sigmod::Game> > m_games;
};
}
}