瀏覽代碼

Disable copy and assignment operators.

Sascha Zelzer 13 年之前
父節點
當前提交
c92c51aea9

+ 4 - 0
Libs/PluginFramework/ctkServiceReferencePrivate.h

@@ -103,6 +103,10 @@ public:
    * Link to registration object for this reference.
    */
   ctkServiceRegistrationPrivate* const registration;
+
+private:
+
+  Q_DISABLE_COPY(ctkServiceReferencePrivate)
 };
 
 #endif // CTKSERVICEREFERENCEPRIVATE_H

+ 4 - 0
Libs/PluginFramework/ctkServiceRegistrationPrivate.h

@@ -123,6 +123,10 @@ public:
 
   virtual QObject* getService();
 
+private:
+
+  Q_DISABLE_COPY(ctkServiceRegistrationPrivate)
+
 };