0024095: Eliminate compiler warning C4512 in MSVC++ with warning level 4
authoromy <omy@opencascade.com>
Tue, 6 Aug 2013 14:25:08 +0000 (18:25 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Aug 2013 13:23:34 +0000 (17:23 +0400)
Removed most of warnings C4512 for non-copyable objects

src/Extrema/Extrema_GenExtPS.cxx
src/LDOM/LDOM_CharReference.cxx
src/LDOM/LDOM_MemManager.hxx
src/SelectMgr/SelectMgr_CompareResults.hxx
src/VrmlData/VrmlData_InBuffer.hxx
src/VrmlData/VrmlData_ShapeConvert.hxx

index 078de1c..926202f 100755 (executable)
@@ -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&);
 
 };
 
index 9f74c13..98b34e0 100755 (executable)
@@ -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&);
 };
 
 //=======================================================================
index 93e3134..22c000a 100755 (executable)
@@ -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 ----
index 84ec163..61b5e7b 100755 (executable)
@@ -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& );
 };
 
 //=======================================================================
index fd2d033..21276d0 100755 (executable)
@@ -24,7 +24,6 @@
 
 #include <Standard_IStream.hxx>
 #include <Standard_Boolean.hxx>
-
 /**
  * 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
index 70c4120..339ba32 100755 (executable)
@@ -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 <ShapeData>          myShapes;
+  // ---------- PRIVATE METHODS ----------
+  void operator= (const VrmlData_ShapeConvert&);
 };
 
 #endif