From: nds Date: Wed, 25 Mar 2009 09:34:39 +0000 (+0000) Subject: These are small improvents to correct compilation onUnix. X-Git-Tag: V2_1_0_beta~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f1458795498255fa95b32b7664b5947a92d2407;p=modules%2Fgui.git These are small improvents to correct compilation onUnix. --- 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));