]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Compiler error on Linux due to the predicate's copy constructor being called -> const...
authorsan <san@opencascade.com>
Wed, 25 Mar 2009 08:08:45 +0000 (08:08 +0000)
committersan <san@opencascade.com>
Wed, 25 Mar 2009 08:08:45 +0000 (08:08 +0000)
src/VTKViewer/VTKViewer_Algorithm.h

index 4eec97340c9d77184e87e7dd4223fdabe376ff2f..8cce14b65a049e425a87ace16583c075fbd8cb25 100644 (file)
@@ -75,7 +75,7 @@ namespace VTK
      */
     template<typename TActor, typename TPredicate, typename TFunction, typename TAltFunction>
       TFunction ForEachIfElse(vtkActorCollection *theCollection, 
-                             TPredicate thePredicate,
+                             const TPredicate& thePredicate,
                              TFunction theFun,
                               TAltFunction theAltFun)
       {