]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/registry.h
Replaced QPointer<> with QWeakPointer<>
[evaf] / src / libs / Common / registry.h
index 1046c485c798f8da67a8315d89a549306c7a39d0..9c05c5040e9f119fce27700bb84d6939b9def930 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <QObject>
 #include <QString>
-#include <QPointer>
+#include <QWeakPointer>
 #include <QHash>
 
 namespace eVaf {
@@ -35,7 +35,7 @@ namespace Internal {
  * iRegistry interface implementation.
  *
  * This class implements the global registry for interfaces. Interfaces are stored in a QHash container
- * and quarded with QPointer.
+ * and quarded with QWeakPointer.
  */
 class Registry : public iRegistry
 {
@@ -59,7 +59,7 @@ public:
 private:
 
     /// All the registered interfaces
-    QHash<QString, QPointer<QObject> > mInterfaces;
+    QHash<QString, QWeakPointer<QObject> > mInterfaces;
 
 };