Console::showException() does not modify the exception (added "const").

This commit is contained in:
David Capello 2011-03-09 00:18:43 -03:00
parent 69a3070018
commit 654d14eede
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -29,7 +29,7 @@ public:
void printf(const char *format, ...);
static void showException(std::exception& e);
static void showException(const std::exception& e);
};
#endif