Salome HOME
omniORB4 porting
authorrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:59:11 +0000 (12:59 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:59:11 +0000 (12:59 +0000)
idl/SUPERV.idl
src/Supervision/Value_Impl.cxx

index 80ef176f698746e9c7dd6a42de19499ad57348df..f4502eb5b069f6dfcbb04c33a607cb633c368059 100644 (file)
@@ -282,10 +282,6 @@ Creates a value of <b>any</b> type which will be used for <VAR>Input</VAR> metho
 \param ior String parameter defining %IOR of the graph.
 */
     SUPERV::StreamGraph getStreamGraph(in string ior); // get Graph from is IOR
-/*!
-Returns a duplicate of the object (omniORB4 problem).
-*/
-    Object ToObject( in Object anObject ) ;
 
   };
 
index aa2e2494ec800af49b945f6198558a3e3efd5ed6..42350a9604283a68570f51c10e2d0011c5161e24 100644 (file)
@@ -295,7 +295,11 @@ char * Value_Impl::ToString() {
     case CORBA::tk_objref: {
       CORBA::Object_ptr obj ;
       try {
+#if OMNIORB_VERSION >= 4
+        anAny >>= (CORBA::Any::to_object ) obj ;
+#else
         anAny >>= obj ;
+#endif
         retstr = _Orb->object_to_string( obj );
 //        MESSAGE( "ToString( object ) '" << retstr << "'" );
       }