From: Mathias Froehlich Date: Sat, 1 Oct 2011 08:11:33 +0000 (+0200) Subject: hla: disable copying for HLA*Class. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=344f876b0ade9212e8ca8c4c521b9cb89ea5692c;p=simgear.git hla: disable copying for HLA*Class. --- diff --git a/simgear/hla/HLAInteractionClass.hxx b/simgear/hla/HLAInteractionClass.hxx index c45c22d7..021dff7e 100644 --- a/simgear/hla/HLAInteractionClass.hxx +++ b/simgear/hla/HLAInteractionClass.hxx @@ -25,6 +25,10 @@ class RTIInteractionClass; class HLAInteractionClass : public SGWeakReferenced { public: virtual ~HLAInteractionClass() {} + +private: + HLAInteractionClass(const HLAInteractionClass&); + HLAInteractionClass& operator=(const HLAInteractionClass&); }; } // namespace simgear diff --git a/simgear/hla/HLAObjectClass.hxx b/simgear/hla/HLAObjectClass.hxx index b0db5ad1..3c5ace5f 100644 --- a/simgear/hla/HLAObjectClass.hxx +++ b/simgear/hla/HLAObjectClass.hxx @@ -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);