]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Mandriva 2006 porting.
authormkr <mkr@opencascade.com>
Tue, 7 Mar 2006 07:48:59 +0000 (07:48 +0000)
committermkr <mkr@opencascade.com>
Tue, 7 Mar 2006 07:48:59 +0000 (07:48 +0000)
src/GraphBase/DataFlowBase_DataPort.cxx

index 7830313800b12bb80ab126b94023e4d02d4833a5..f559b3c5ed473bed0bdc6d3a9a892bba821f937f 100644 (file)
@@ -91,11 +91,15 @@ void GraphBase::DataPort::InitialValues(CORBA::Any aValue ) {
   }
   else if ( !strcmp( Type , "float" ) ) {
     cdebug << "float" << endl ;
-    InitialValue <<= (double ) 0. ;
+    double d = 0.;
+    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+    //InitialValue <<= (double ) 0. ;
   }
   else if ( !strcmp( Type , "double" ) ) {
     cdebug << "double" << endl ;
-    InitialValue <<= (double ) 0. ;
+    double d = 0.;
+    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+    //InitialValue <<= (double ) 0. ;
   }
   else { // Default
     cdebug << "objref" << endl ;