소스 검색

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