From 6488ee48474dc8b8dcb292ab6ccc00f40bb7001c Mon Sep 17 00:00:00 2001 From: san Date: Wed, 25 Mar 2009 08:08:45 +0000 Subject: [PATCH] Compiler error on Linux due to the predicate's copy constructor being called -> const reference used to avoid copying --- src/VTKViewer/VTKViewer_Algorithm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2