From 25ad5cf7f596167f80b89eec7c4cb100060bf6c8 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Fri, 31 Aug 2012 00:17:35 +0000 Subject: [PATCH] exception::what() const throw() git-svn-id: https://profuse.googlecode.com/svn/branches/v2@403 aa027e90-d47c-11dd-86d7-074df07e0730 --- Common/Exception.cpp | 2 +- Common/Exception.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Exception.cpp b/Common/Exception.cpp index 5295312..ea79889 100644 --- a/Common/Exception.cpp +++ b/Common/Exception.cpp @@ -33,7 +33,7 @@ Exception::~Exception() throw() { } -const char *Exception::what() +const char *Exception::what() const throw() { return _string.c_str(); } diff --git a/Common/Exception.h b/Common/Exception.h index 3377cac..d55eed3 100644 --- a/Common/Exception.h +++ b/Common/Exception.h @@ -14,7 +14,7 @@ public: virtual ~Exception() throw (); - virtual const char *what(); + virtual const char *what() const throw(); virtual const char *errorString(); int error() const { return _error; }