From 0c66284c81d8bb10a8819cad3ea61f72c7f045ae Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 8 Jun 2005 04:27:58 +0000 Subject: [PATCH] Porting to Mandrake 10.1 and new products: 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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/OCCViewer/OCCViewer_Viewer3d.cxx b/src/OCCViewer/OCCViewer_Viewer3d.cxx index c79b20136..245332b39 100644 --- a/src/OCCViewer/OCCViewer_Viewer3d.cxx +++ b/src/OCCViewer/OCCViewer_Viewer3d.cxx @@ -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 ); } } -- 2.39.2