]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fixed bug in methods LinkSavePY and LinkSaveXML, now conversion of CORBA::Any comply... Before_Merging_With_V3_2_6pre4
authorsrn <srn@opencascade.com>
Mon, 9 Apr 2007 13:40:39 +0000 (13:40 +0000)
committersrn <srn@opencascade.com>
Mon, 9 Apr 2007 13:40:39 +0000 (13:40 +0000)
src/GraphEditor/DataFlowEditor_OutNode.cxx

index 6a2eda8b1f17dd93007ce2d6b66e111c16f16fe6..a088e758f233d3fce648d1846fdc41a639e56391 100644 (file)
@@ -1245,7 +1245,11 @@ bool GraphEditor::OutNode::LinkSaveXML( QDomDocument & Graph , QDomElement & lin
       case CORBA::tk_objref: {
         char* retstr ;
         CORBA::Object_ptr obj ;
-        aLink.aLinkValue >>= obj ;
+#if OMNIORB_VERSION >= 4
+        aLink.aLinkValue >>= (CORBA::Any::to_object)obj;
+#else
+       aLink.aLinkValue >>= obj;
+#endif 
         retstr = _Orb->object_to_string(obj );
 //        f << Tabs << "       <value>" << retstr << "</value>" << endl ;
         QDomElement value = Graph.createElement( "value" ) ;
@@ -1356,7 +1360,11 @@ bool GraphEditor::OutNode::LinkSavePY( ostream &f , const char * aGraphName ,
       case CORBA::tk_objref: {
         char* retstr ;
         CORBA::Object_ptr obj ;
-        aLink.aLinkValue >>= obj ;
+#if OMNIORB_VERSION >= 4
+        aLink.aLinkValue >>= (CORBA::Any::to_object)obj;
+#else
+       aLink.aLinkValue >>= obj;
+#endif 
         retstr = _Orb->object_to_string(obj );
         f << "'" << retstr << "'" ;
         break ;