From 3f1458795498255fa95b32b7664b5947a92d2407 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 25 Mar 2009 09:34:39 +0000 Subject: [PATCH] These are small improvents to correct compilation onUnix. --- src/SVTK/SVTK_Functor.h | 4 ++++ src/SVTK/SVTK_View.cxx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_Functor.h b/src/SVTK/SVTK_Functor.h index 87d787895..6a70dfa04 100644 --- a/src/SVTK/SVTK_Functor.h +++ b/src/SVTK/SVTK_Functor.h @@ -27,6 +27,7 @@ #include "SALOME_InteractiveObject.hxx" #include "SALOME_ListIO.hxx" +#include "SALOME_ListIteratorOfListIO.hxx" #include @@ -111,6 +112,9 @@ namespace SVTK } return false; } + + private: + TIsInList( const TIsInList& ) {} }; diff --git a/src/SVTK/SVTK_View.cxx b/src/SVTK/SVTK_View.cxx index 676df5cc2..4eb43136b 100644 --- a/src/SVTK/SVTK_View.cxx +++ b/src/SVTK/SVTK_View.cxx @@ -166,9 +166,10 @@ SVTK_SignalHandler using namespace SVTK; SVTK_Selector* aSelector = myMainWindow->GetSelector(); const SALOME_ListIO& aListIO = aSelector->StoredIObjects(); + TIsInList aPredicate(aListIO); ForEachIfElse(anActors, - TIsInList(aListIO), + aPredicate, THighlightAction(true), THighlightAction(false)); -- 2.39.2