]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
authoreap <eap@opencascade.com>
Wed, 24 Jul 2013 12:42:52 +0000 (12:42 +0000)
committereap <eap@opencascade.com>
Wed, 24 Jul 2013 12:42:52 +0000 (12:42 +0000)
-      QString IOR = app->orb()->object_to_string( theObject );
+      CORBA::String_var ior = app->orb()->object_to_string( theObject );

src/SMESHGUI/SMESHGUI_Utils.cxx

index 26f3619842b38644508ccee37c59714ebd94002b..563e740ad034587a7d724424ebf2c1996a32dbf4 100644 (file)
@@ -215,10 +215,10 @@ namespace SMESH
     SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
       (SUIT_Session::session()->activeApplication());
     if ( app ) {
-      QString IOR = app->orb()->object_to_string( theObject );
+      CORBA::String_var ior = app->orb()->object_to_string( theObject );
       SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
-      if ( study && !IOR.isEmpty() )
-        res = study->studyDS()->FindObjectIOR( IOR.toLatin1().constData() );
+      if ( study && strlen( ior ) > 0 )
+        res = study->studyDS()->FindObjectIOR( ior.in() );
     }
     return res;
   }