From c39b1a665114ad2a8231f0ea69f9c730cc434070 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 31 Jul 2013 07:02:04 +0200 Subject: Added a few forgotten references. --- src/Main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Main.cc') diff --git a/src/Main.cc b/src/Main.cc index baf55d4..7c205d4 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -60,7 +60,7 @@ int Balau::Main::bootstrap(int argc, char ** argv) { r = TaskMan::getDefaultTaskMan()->mainLoop(); m_status = STOPPING; } - catch (Exit e) { + catch (Exit & e) { m_status = STOPPING; Printer::log(M_ERROR, "We shouldn't have gotten an Exit exception here... exitting anyway"); auto trace = e.getTrace(); @@ -68,7 +68,7 @@ int Balau::Main::bootstrap(int argc, char ** argv) { Printer::log(M_ERROR, "%s", str.to_charp()); r = e.getCode(); } - catch (RessourceException e) { + catch (RessourceException & e) { m_status = STOPPING; Printer::log(M_ERROR | M_ALERT, "The application got a ressource problem: %s", e.getMsg()); const char * details = e.getDetails(); @@ -79,7 +79,7 @@ int Balau::Main::bootstrap(int argc, char ** argv) { Printer::log(M_DEBUG, "%s", str.to_charp()); r = -1; } - catch (GeneralException e) { + catch (GeneralException & e) { m_status = STOPPING; Printer::log(M_ERROR | M_ALERT, "The application caused an exception: %s", e.getMsg()); const char * details = e.getDetails(); -- cgit v1.2.3