From: san Date: Wed, 25 Mar 2009 08:08:45 +0000 (+0000) Subject: Compiler error on Linux due to the predicate's copy constructor being called -> const... X-Git-Tag: V2_1_0_beta~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6488ee48474dc8b8dcb292ab6ccc00f40bb7001c;p=modules%2Fgui.git Compiler error on Linux due to the predicate's copy constructor being called -> const reference used to avoid copying --- diff --git a/src/VTKViewer/VTKViewer_Algorithm.h b/src/VTKViewer/VTKViewer_Algorithm.h index 4eec97340..8cce14b65 100644 --- a/src/VTKViewer/VTKViewer_Algorithm.h +++ b/src/VTKViewer/VTKViewer_Algorithm.h @@ -75,7 +75,7 @@ namespace VTK */ template TFunction ForEachIfElse(vtkActorCollection *theCollection, - TPredicate thePredicate, + const TPredicate& thePredicate, TFunction theFun, TAltFunction theAltFun) {