]> OCCT Git - occt-copy.git/commitdiff
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 078de1cb780a5ec6bec7629b3862459baba58ed0..926202f7c242010d30fd67f935e86ca5bcfac014 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 9f74c1389e695c5cebbeb5c9c72bfe6b7968cc34..98b34e0c9ab4d7d68b7ca700b1a5d0c0c6bfbb99 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 93e3134cae2c3114a937b338f5a039599db61173..22c000a4c9720ad4581d5802aec7e5f1117467c0 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 84ec16389ec3275db7bc67d314d1cd7cc4e4e873..61b5e7b044818e4ab03bbe52e6fec89a15cac845 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 fd2d03378f577a46a7b31dbf0b71d0659c611c3e..21276d040bf3fc3bb70a06b561e6f9d1d9774a43 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 70c4120424a4506c11cbc180a456a635c7e8299e..339ba32ccd2b774cefc0b19a847888a7186549cd 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