]> git.mxchange.org Git - simgear.git/commitdiff
hla: disable copying for HLA*Class.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 1 Oct 2011 08:11:33 +0000 (10:11 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 1 Oct 2011 08:11:33 +0000 (10:11 +0200)
simgear/hla/HLAInteractionClass.hxx
simgear/hla/HLAObjectClass.hxx

index c45c22d772ef4d4202a385867b7663e6af27db1e..021dff7ea73d71397ee2d81d86f35d359531e1c5 100644 (file)
@@ -25,6 +25,10 @@ class RTIInteractionClass;
 class HLAInteractionClass : public SGWeakReferenced {
 public:
     virtual ~HLAInteractionClass() {}
+
+private:
+    HLAInteractionClass(const HLAInteractionClass&);
+    HLAInteractionClass& operator=(const HLAInteractionClass&);
 };
 
 } // namespace simgear
index b0db5ad1f9b40b776040ac16e899f28d5ff1a68d..3c5ace5f5e9b2ebd974873ed9f839dedae2b7e36 100644 (file)
@@ -95,6 +95,9 @@ protected:
     virtual HLAObjectInstance* createObjectInstance(RTIObjectInstance* rtiObjectInstance);
 
 private:
+    HLAObjectClass(const HLAObjectClass&);
+    HLAObjectClass& operator=(const HLAObjectClass&);
+
     // The internal entry points from the RTILObjectClass callback functions
     void discoverInstance(RTIObjectInstance* objectInstance, const RTIData& tag);
     void removeInstance(HLAObjectInstance& objectInstance, const RTIData& tag);