From 1e631f481de88e1cf3929d1b120b68a1bd6aae9f Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Wed, 10 Sep 2008 09:05:47 +0000
Subject: [PATCH] ENH; Declaring sub-classes method inline. Not sure if it is
 useful there.

---
 Code/BasicFilters/otbMeanShiftImageFilter.h       | 10 +++++-----
 Code/BasicFilters/otbMeanShiftVectorImageFilter.h | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Code/BasicFilters/otbMeanShiftImageFilter.h b/Code/BasicFilters/otbMeanShiftImageFilter.h
index 4de9423255..564566f412 100644
--- a/Code/BasicFilters/otbMeanShiftImageFilter.h
+++ b/Code/BasicFilters/otbMeanShiftImageFilter.h
@@ -66,21 +66,21 @@ class ITK_EXPORT MeanShiftImageFilter
     virtual void PrintSelf(std::ostream& os, itk::Indent indent) const;
     
     /** Redefinition of the GetNumberOfComponentsPerPixel() adapted for Image */
-    virtual unsigned int GetNumberOfComponentsPerPixel();
+    inline virtual unsigned int GetNumberOfComponentsPerPixel();
     
     /** Redefinition of the InitValue() method adapted for Image
      *  Please be aware that this function modifies the reference to value 
      */
-    virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents);
+    inline virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents);
     
     /** Redefinition of the SquaredNorm() method adapted for Image */
-    virtual double SquaredNorm(const PrecisionPixelType& value);
+    inline virtual double SquaredNorm(const PrecisionPixelType& value);
 
     /** Redefinition of CastInputPixelToPrecisionPixel() method adapted form Image */
-    virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel);
+    inline virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel);
 
     /** Redefinition of CastPrecisionPixelToOutputPixel() method adapted form Image */
-    virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel);
+    inline virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel);
 
     private:
     MeanShiftImageFilter(const Self&); //purposely not implemented
diff --git a/Code/BasicFilters/otbMeanShiftVectorImageFilter.h b/Code/BasicFilters/otbMeanShiftVectorImageFilter.h
index 150398974b..6280dd65c1 100644
--- a/Code/BasicFilters/otbMeanShiftVectorImageFilter.h
+++ b/Code/BasicFilters/otbMeanShiftVectorImageFilter.h
@@ -66,21 +66,21 @@ namespace otb
       virtual void PrintSelf(std::ostream& os, itk::Indent indent) const;
 
       /** Redefinition of the GetNumberOfComponentsPerPixel() adapted for VectorImages */
-      virtual unsigned int GetNumberOfComponentsPerPixel();
+      inline virtual unsigned int GetNumberOfComponentsPerPixel();
 
       /** Redefinition of the InitValue() method adapted for vector images 
        *  Please be aware that this function modifies the reference to value 
        */
-      virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents);
+      inline virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents);
 
       /** Redefinition of the SquaredNorm() method adapted for vector images */
-      virtual double SquaredNorm(const PrecisionPixelType & value);
+      inline virtual double SquaredNorm(const PrecisionPixelType & value);
 
       /** Redefinition of CastInputPixelToPrecisionPixel() method adapted form Image */
-      virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel);
+      inline virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel);
       
       /** Redefinition of CastPrecisionPixelToOutputPixel() method adapted form Image */
-      virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel);
+      inline virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel);
       
       private:
       MeanShiftVectorImageFilter(const Self&); //purposely not implemented
-- 
GitLab