From 5525c4adddea69086066d34151f5f7ed82a30981 Mon Sep 17 00:00:00 2001
From: Stephane ALBERT <stephane.albert@c-s.fr>
Date: Fri, 17 Apr 2015 10:07:54 +0200
Subject: [PATCH] ENH: Added missing ImageKeywordList::operator!=().

---
 .../OSSIMAdapters/include/otbImageKeywordlist.h      | 12 +++++++++++-
 .../OSSIMAdapters/src/otbImageKeywordlist.cxx        |  4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Modules/Adapters/OSSIMAdapters/include/otbImageKeywordlist.h b/Modules/Adapters/OSSIMAdapters/include/otbImageKeywordlist.h
index fdd5e51914..c4896159bb 100644
--- a/Modules/Adapters/OSSIMAdapters/include/otbImageKeywordlist.h
+++ b/Modules/Adapters/OSSIMAdapters/include/otbImageKeywordlist.h
@@ -127,7 +127,9 @@ public:
 
   ImageKeywordlist(const Self &);
   void operator =(const Self&);
-  bool operator ==(const Self&);
+
+  bool operator ==(const Self&) const;
+  inline bool operator != ( const Self & ) const;
 
 protected:
   /** Methods invoked by Print() to print information about the object
@@ -154,6 +156,14 @@ ImageKeywordlist ReadGeometryFromGEOMFile(const std::string& filename);
 ImageKeywordlist ReadGeometryFromRPCTag(const std::string& filename);
 void WriteGeometry(const ImageKeywordlist& otb_kwl, const std::string& filename);
 
+inline
+bool
+ImageKeywordlist
+::operator !=( const Self & p ) const
+{
+  return !this->operator == ( p );
+}
+
 } //namespace otb
 
 #endif // __otbImageKeywordlist_h
diff --git a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx
index 1da8f71eaf..ef4a9ce607 100644
--- a/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx
+++ b/Modules/Adapters/OSSIMAdapters/src/otbImageKeywordlist.cxx
@@ -59,8 +59,8 @@ operator =(const Self& p)
 }
 
 bool
-ImageKeywordlist::
-operator ==(const Self& p)
+ImageKeywordlist
+::operator ==(const Self& p) const
 {
   return m_Keywordlist == p.m_Keywordlist;
 }
-- 
GitLab