]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
remove memory leaks uninitalised memory read, etc...
authorptv <ptv@opencascade.com>
Fri, 14 Jul 2006 04:48:25 +0000 (04:48 +0000)
committerptv <ptv@opencascade.com>
Fri, 14 Jul 2006 04:48:25 +0000 (04:48 +0000)
noticed with Rational Purify on Windows

src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.cxx

index d8ec38847ab6cfb4e7077f98ed865474c07a697f..b0832eda364eebe77855cd2873b7652bf6ebf587 100644 (file)
@@ -452,7 +452,8 @@ bool BlocksGUI_ExplodeDlg::execute (ObjectList& objects)
     ObjectList toRemoveFromEnggine;
     ObjectList::iterator anIter;
     for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter) {
-      if (selected.contains(myGeomGUI->getApp()->orb()->object_to_string(*anIter)))
+      CORBA::String_var objStr = myGeomGUI->getApp()->orb()->object_to_string(*anIter);
+      if (selected.contains(QString(objStr.in())))
         objects.push_back(*anIter);
       else
         toRemoveFromEnggine.push_back(*anIter);
index aaa7a3eca4653988a794ba953813106c05f2ae7d..dd2924e917e32628271a8368cfdf88c329515cc5 100644 (file)
@@ -1358,7 +1358,8 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
   getDisplayer()->SetToActivate( activate );
 
   // Make a reference to GEOM_Object
-  getDisplayer()->SetName( myGeometryGUI->getApp()->orb()->object_to_string( object ) );
+  CORBA::String_var objStr = myGeometryGUI->getApp()->orb()->object_to_string( object );
+  getDisplayer()->SetName( objStr.in() );
 
   // Create wire from applayed object
   TopoDS_Shape anApplyedWire, aLastSegment;