From d390b16690b292da510b9dc8b6ac99ce454951dd Mon Sep 17 00:00:00 2001 From: omy Date: Tue, 6 Aug 2013 18:25:08 +0400 Subject: [PATCH] 0024095: Eliminate compiler warning C4512 in MSVC++ with warning level 4 Removed most of warnings C4512 for non-copyable objects --- src/Extrema/Extrema_GenExtPS.cxx | 10 +++++----- src/LDOM/LDOM_CharReference.cxx | 1 + src/LDOM/LDOM_MemManager.hxx | 2 +- src/SelectMgr/SelectMgr_CompareResults.hxx | 1 + src/VrmlData/VrmlData_InBuffer.hxx | 5 +++-- src/VrmlData/VrmlData_ShapeConvert.hxx | 3 ++- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Extrema/Extrema_GenExtPS.cxx b/src/Extrema/Extrema_GenExtPS.cxx index 078de1cb78..926202f7c2 100755 --- a/src/Extrema/Extrema_GenExtPS.cxx +++ b/src/Extrema/Extrema_GenExtPS.cxx @@ -60,7 +60,6 @@ Bnd_Sphere& theSol) mySphereArray(theSphereArray), mySol(theSol) { - //myXYZ = gp_Pnt(0, 0, 0); } void DefineCheckPoint( const gp_Pnt& theXYZ ) @@ -72,11 +71,12 @@ Bnd_Sphere& theSol) virtual Standard_Boolean Reject( const Bnd_Sphere &theBnd ) const = 0; virtual Standard_Boolean Accept(const Standard_Integer& theObj) = 0; - protected: - gp_Pnt myXYZ; - const Handle(Bnd_HArray1OfSphere)& mySphereArray; - Bnd_Sphere& mySol; + gp_Pnt myXYZ; + const Handle(Bnd_HArray1OfSphere)& mySphereArray; + Bnd_Sphere& mySol; + private: + void operator= (const Bnd_SphereUBTreeSelector&); }; diff --git a/src/LDOM/LDOM_CharReference.cxx b/src/LDOM/LDOM_CharReference.cxx index 9f74c1389e..98b34e0c9a 100755 --- a/src/LDOM/LDOM_CharReference.cxx +++ b/src/LDOM/LDOM_CharReference.cxx @@ -40,6 +40,7 @@ struct entityRef { const char * name; const int length; entityRef (const char * aName, const int aLen) : name(aName), length(aLen) {} + void operator= (const entityRef&); }; //======================================================================= diff --git a/src/LDOM/LDOM_MemManager.hxx b/src/LDOM/LDOM_MemManager.hxx index 93e3134cae..22c000a4c9 100755 --- a/src/LDOM/LDOM_MemManager.hxx +++ b/src/LDOM/LDOM_MemManager.hxx @@ -108,8 +108,8 @@ class LDOM_MemManager : public MMgt_TShared char * str; struct TableItem * next; } * myTable; -// Standard_Integer myMask; LDOM_MemManager& myManager; + void operator= (const HashTable&); }; // ---- PROHIBITED (PRIVATE) METHODS ---- diff --git a/src/SelectMgr/SelectMgr_CompareResults.hxx b/src/SelectMgr/SelectMgr_CompareResults.hxx index 84ec16389e..61b5e7b044 100755 --- a/src/SelectMgr/SelectMgr_CompareResults.hxx +++ b/src/SelectMgr/SelectMgr_CompareResults.hxx @@ -34,6 +34,7 @@ class SelectMgr_CompareResults: public TCollection_CompareOfInteger (const Standard_Integer&, const Standard_Integer&) const; private: const SelectMgr_IndexedDataMapOfOwnerCriterion& myMapOfCriterion; + void operator= (const SelectMgr_CompareResults& ); }; //======================================================================= diff --git a/src/VrmlData/VrmlData_InBuffer.hxx b/src/VrmlData/VrmlData_InBuffer.hxx index fd2d03378f..21276d040b 100755 --- a/src/VrmlData/VrmlData_InBuffer.hxx +++ b/src/VrmlData/VrmlData_InBuffer.hxx @@ -24,7 +24,6 @@ #include #include - /** * Structure passed to the methods dealing with input stream. */ @@ -38,7 +37,9 @@ struct VrmlData_InBuffer { : Input (theStream), LinePtr (&Line[0]), IsProcessed (Standard_False), - LineCount (0) {} + LineCount (0) {}; + private: + void operator= (const VrmlData_InBuffer&); }; #endif diff --git a/src/VrmlData/VrmlData_ShapeConvert.hxx b/src/VrmlData/VrmlData_ShapeConvert.hxx index 70c4120424..339ba32ccd 100755 --- a/src/VrmlData/VrmlData_ShapeConvert.hxx +++ b/src/VrmlData/VrmlData_ShapeConvert.hxx @@ -90,7 +90,6 @@ class VrmlData_ShapeConvert const Standard_Real theDeflAngle = 20.*M_PI/180.); //this value of theDeflAngle is used by default //for tesselation while shading (Drawer->HLRAngle()) - protected: // ---------- PROTECTED METHODS ---------- @@ -112,6 +111,8 @@ class VrmlData_ShapeConvert VrmlData_Scene& myScene; Standard_Real myScale; NCollection_List myShapes; + // ---------- PRIVATE METHODS ---------- + void operator= (const VrmlData_ShapeConvert&); }; #endif