From 1a7473d328474c2f7af5d16db18c5d1afe25cc62 Mon Sep 17 00:00:00 2001 From: Bob Kenny Date: Mon, 4 Jan 2016 01:32:37 -0500 Subject: [PATCH] Corrected try/catch to be references --- sleepyhead/SleepLib/loader_plugins/icon_loader.cpp | 2 +- sleepyhead/SleepLib/profiles.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp b/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp index b6b8dee1..2487cca8 100644 --- a/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp @@ -134,7 +134,7 @@ int FPIconLoader::Open(QString path) if (m) { c+=OpenMachine(m, npath); } - } catch (OneTypePerDay e) { + } catch (OneTypePerDay& e) { Q_UNUSED(e) p_profile->DelMachine(m); MachList.erase(MachList.find(info.serial)); diff --git a/sleepyhead/SleepLib/profiles.cpp b/sleepyhead/SleepLib/profiles.cpp index d37457aa..5e037052 100644 --- a/sleepyhead/SleepLib/profiles.cpp +++ b/sleepyhead/SleepLib/profiles.cpp @@ -581,7 +581,7 @@ void Profile::LoadMachineData() } else { try { m->Load(); - } catch (OldDBVersion e) { + } catch (OldDBVersion& e) { Q_UNUSED(e) DataFormatError(m); }