From: srn Date: Mon, 9 Apr 2007 13:40:39 +0000 (+0000) Subject: Fixed bug in methods LinkSavePY and LinkSaveXML, now conversion of CORBA::Any comply... X-Git-Tag: Before_Merging_With_V3_2_6pre4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c5ffa970b892171caf6db749c3e2b9183293209;p=modules%2Fsuperv.git Fixed bug in methods LinkSavePY and LinkSaveXML, now conversion of CORBA::Any comply with requirements of omniORB versions > 4 --- diff --git a/src/GraphEditor/DataFlowEditor_OutNode.cxx b/src/GraphEditor/DataFlowEditor_OutNode.cxx index 6a2eda8..a088e75 100644 --- a/src/GraphEditor/DataFlowEditor_OutNode.cxx +++ b/src/GraphEditor/DataFlowEditor_OutNode.cxx @@ -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 << " " << retstr << "" << 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 ;