From: mkr Date: Tue, 7 Mar 2006 07:48:59 +0000 (+0000) Subject: Mandriva 2006 porting. X-Git-Tag: mergeto_trunk_13Mar06~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a2f2f5235e7d3e892281654c6828bef28313dbbb;p=modules%2Fsuperv.git Mandriva 2006 porting. --- diff --git a/src/GraphBase/DataFlowBase_DataPort.cxx b/src/GraphBase/DataFlowBase_DataPort.cxx index 7830313..f559b3c 100644 --- a/src/GraphBase/DataFlowBase_DataPort.cxx +++ b/src/GraphBase/DataFlowBase_DataPort.cxx @@ -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 ;