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); }