From 66a73adb7735b955d120649ff5f14034cab92db7 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Fri, 21 Aug 2009 17:30:00 +0200
Subject: [PATCH] BUG: Odd implicit interface in SimplifyPathFunctor

---
 Code/BasicFilters/otbSimplifyPathFunctor.h         | 10 +++++-----
 Code/FeatureExtraction/otbSimplifyPathListFilter.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Code/BasicFilters/otbSimplifyPathFunctor.h b/Code/BasicFilters/otbSimplifyPathFunctor.h
index 91c868b1a7..f9fd52e829 100644
--- a/Code/BasicFilters/otbSimplifyPathFunctor.h
+++ b/Code/BasicFilters/otbSimplifyPathFunctor.h
@@ -50,10 +50,10 @@ class SimplifyPathFunctor
 {
 public:
 
-  typedef typename TInput::ObjectType::VertexListType::ConstIterator VertexListConstIteratorType;
-  typedef typename TInput::ObjectType::VertexListType::ConstPointer VertexListConstPointerType;
-  typedef TOutput OutputPathPointerType;
-  typedef typename OutputPathPointerType::ObjectType OutputPathType;
+  typedef typename TInput::VertexListType::ConstIterator VertexListConstIteratorType;
+  typedef typename TInput::VertexListType::ConstPointer  VertexListConstPointerType;
+  typedef TOutput                                        OutputPathType;
+  typedef typename OutputPathType::Pointer               OutputPathPointerType;
 
   void SetTolerance(double Tolerance )
   {
@@ -70,7 +70,7 @@ public:
   };
   ~SimplifyPathFunctor() {};
 
-  inline OutputPathPointerType operator()(const TInput & input)
+  inline OutputPathPointerType operator()(const TInput * input)
   {
 
     OutputPathPointerType newPath = OutputPathType::New();
diff --git a/Code/FeatureExtraction/otbSimplifyPathListFilter.h b/Code/FeatureExtraction/otbSimplifyPathListFilter.h
index 5da8fb3f9d..77400608c1 100644
--- a/Code/FeatureExtraction/otbSimplifyPathListFilter.h
+++ b/Code/FeatureExtraction/otbSimplifyPathListFilter.h
@@ -64,7 +64,7 @@ class ITK_EXPORT  SimplifyPathListFilter:
       public UnaryFunctorObjectListFilter<
       ObjectList<TPath>,
       ObjectList<TPath>,
-      SimplifyPathFunctor<typename TPath::Pointer, typename TPath::Pointer> >
+      SimplifyPathFunctor<TPath,TPath> >
   {};
 
 }// End namespace otb
-- 
GitLab