ソースを参照

Disable copy and assignment operators.

Sascha Zelzer 13 年 前
コミット
c92c51aea9
共有2 個のファイルを変更した8 個の追加0 個の削除を含む
  1. 4 0
      Libs/PluginFramework/ctkServiceReferencePrivate.h
  2. 4 0
      Libs/PluginFramework/ctkServiceRegistrationPrivate.h

+ 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)
+
 };