From 1002101cadefed925c914ba3ee7d22d8c75fdd13 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 9 Dec 2005 08:17:58 +0000 Subject: [PATCH] Fix for compilation errors under Fedora and Mandrake --- src/StdMeshers/StdMeshers_Distribution.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.39.2