From 44a2163fbd6fc75ccd686e2e5916b2ebb1974be0 Mon Sep 17 00:00:00 2001
From: florent <florent@laas.fr>
Date: Fri, 2 Jul 2010 14:47:41 +0200
Subject: [PATCH] Make ExceptionAbstract::getStringMessage const

     * include/dynamic-graph/exception-abstract.h,
     * src/exception/exception-abstract.cpp.
---
 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 01a8a436..548fb77b 100644
--- a/include/dynamic-graph/exception-abstract.h
+++ b/include/dynamic-graph/exception-abstract.h
@@ -80,7 +80,7 @@ public:
   int getCode (void);
 
   /** Reference access to the error message (can be empty). */
-  const std::string &getStringMessage (void);
+  const std::string& getStringMessage (void) const;
 
   /** Access to the pointer on the array of  \e char related to the error string.
    * Cannot be  \e NULL.
diff --git a/src/exception/exception-abstract.cpp b/src/exception/exception-abstract.cpp
index 923e649b..4aee5838 100644
--- a/src/exception/exception-abstract.cpp
+++ b/src/exception/exception-abstract.cpp
@@ -54,8 +54,8 @@ getMessage (void)
     return (this->message) .c_str();
 }
 
-const string &ExceptionAbstract::
-getStringMessage (void)
+const string& ExceptionAbstract::
+getStringMessage (void) const
 {
     return this->message;
 }
-- 
GitLab