From: asl Date: Fri, 9 Dec 2005 08:17:58 +0000 (+0000) Subject: Fix for compilation errors under Fedora and Mandrake X-Git-Tag: T_3_1_0pre~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1002101cadefed925c914ba3ee7d22d8c75fdd13;p=modules%2Fsmesh.git Fix for compilation errors under Fedora and Mandrake --- diff --git a/src/StdMeshers/StdMeshers_Distribution.cxx b/src/StdMeshers/StdMeshers_Distribution.cxx index fc776309e..93858296b 100644 --- a/src/StdMeshers/StdMeshers_Distribution.cxx +++ b/src/StdMeshers/StdMeshers_Distribution.cxx @@ -301,13 +301,15 @@ double dihotomySolve( Function& f, const double val, const double _start, const bool buildDistribution( const TCollection_AsciiString& f, const int conv, const double start, const double end, const int nbSeg, vector& data, const double eps ) { - return buildDistribution( FunctionExpr( f.ToCString(), conv ), start, end, nbSeg, data, eps ); + FunctionExpr F( f.ToCString(), conv ); + return buildDistribution( F, start, end, nbSeg, data, eps ); } bool buildDistribution( const std::vector& f, const int conv, const double start, const double end, const int nbSeg, vector& data, const double eps ) { - return buildDistribution( FunctionTable( f, conv ), start, end, nbSeg, data, eps ); + FunctionTable F( f, conv ); + return buildDistribution( F, start, end, nbSeg, data, eps ); } bool buildDistribution( const Function& func, const double start, const double end, const int nbSeg,