]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting to Mandrake 10.1 and new products:
authormpv <mpv@opencascade.com>
Wed, 8 Jun 2005 04:27:58 +0000 (04:27 +0000)
committermpv <mpv@opencascade.com>
Wed, 8 Jun 2005 04:27:58 +0000 (04:27 +0000)
new OCC 5.2.3 and new compiler gcc 3.4.1 compatibility: do not use copy constructors for TCollection classes

src/OCCViewer/OCCViewer_Viewer3d.cxx

index c79b20136121459860f9ccac0ecea9962fb75667..245332b39e2dbf335230517f50aa91cb3d71c829 100644 (file)
@@ -796,8 +796,13 @@ void OCCViewer_Viewer3d::localSelectionDone( const bool /*bAdded*/ )
     }
     else
     {
-      aMapsOfShapes.Bind( anObj, TopTools_IndexedMapOfShape() );
-      aMapsOfIndexes.Bind( anObj, TColStd_MapOfInteger() );
+      // mpv: proting to gcc 3.4.1 and OCC 5.2.3
+      //aMapsOfShapes.Bind( anObj, TopTools_IndexedMapOfShape() );
+      //aMapsOfIndexes.Bind( anObj, TColStd_MapOfInteger() );
+      TopTools_IndexedMapOfShape empty1;
+      aMapsOfShapes.Bind( anObj, empty1 );
+      TColStd_MapOfInteger empty2;
+      aMapsOfIndexes.Bind( anObj, empty2 );
     }
   }