From 654d14eede362c4683e66be89093252307269e37 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 9 Mar 2011 00:18:43 -0300 Subject: [PATCH] Console::showException() does not modify the exception (added "const"). --- src/console.cpp | 2 +- src/console.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console.cpp b/src/console.cpp index f5b2d25fb..14fada03b 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -158,7 +158,7 @@ void Console::printf(const char *format, ...) } // static -void Console::showException(std::exception& e) +void Console::showException(const std::exception& e) { Console console; console.printf("A problem has occurred.\n\nDetails:\n%s", e.what()); diff --git a/src/console.h b/src/console.h index 804e2f26d..0a5dc83f8 100644 --- a/src/console.h +++ b/src/console.h @@ -29,7 +29,7 @@ public: void printf(const char *format, ...); - static void showException(std::exception& e); + static void showException(const std::exception& e); }; #endif