From 6844f57ccd3c3203a11b2ed1715991cea7c57387 Mon Sep 17 00:00:00 2001
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Thu, 23 Dec 2010 23:24:42 +0100
Subject: [PATCH] Make ExceptionAbstract::getCode() const.

---
 include/dynamic-graph/exception-abstract.h | 2 +-
 src/exception/exception-abstract.cpp       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/dynamic-graph/exception-abstract.h b/include/dynamic-graph/exception-abstract.h
index 5d3a5e7..8bf3c2a 100644
--- a/include/dynamic-graph/exception-abstract.h
+++ b/include/dynamic-graph/exception-abstract.h
@@ -78,7 +78,7 @@ public:
   virtual ~ExceptionAbstract( void ) throw() {}
 
   /**  Access to the error code. */
-  int getCode (void);
+  int getCode () const;
 
   /** Reference access to the error message (can be empty). */
   const std::string& getStringMessage (void) const;
diff --git a/src/exception/exception-abstract.cpp b/src/exception/exception-abstract.cpp
index b8f16ab..f37ef50 100644
--- a/src/exception/exception-abstract.cpp
+++ b/src/exception/exception-abstract.cpp
@@ -59,8 +59,8 @@ getStringMessage (void) const
     return this->message;
 }
 
-int ExceptionAbstract::
-getCode (void)
+int
+ExceptionAbstract::getCode () const
 {
     return this->code;
 }
-- 
GitLab