mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Console::showException() does not modify the exception (added "const").
This commit is contained in:
parent
69a3070018
commit
654d14eede
@ -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());
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
void printf(const char *format, ...);
|
||||
|
||||
static void showException(std::exception& e);
|
||||
static void showException(const std::exception& e);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user