From a2f2f5235e7d3e892281654c6828bef28313dbbb Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 7 Mar 2006 07:48:59 +0000 Subject: [PATCH] Mandriva 2006 porting. --- src/GraphBase/DataFlowBase_DataPort.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ; -- 2.39.2