Catch C++ exceptions by const reference

Fixes #2277
This commit is contained in:
Charles Milette 2018-05-19 19:18:26 -04:00
parent b9fd381eee
commit 72c0002b45
No known key found for this signature in database
GPG key ID: 1A5AE81377AD973A
22 changed files with 36 additions and 38 deletions

View file

@ -160,7 +160,7 @@ void FolderInstanceProvider::saveGroupList()
{
FS::write(groupFileName, doc.toJson());
}
catch(FS::FileSystemException & e)
catch (const FS::FileSystemException &e)
{
qCritical() << "Failed to write instance group file :" << e.cause();
}
@ -181,7 +181,7 @@ void FolderInstanceProvider::loadGroupList()
{
jsonData = FS::read(groupFileName);
}
catch (FS::FileSystemException & e)
catch (const FS::FileSystemException &e)
{
qCritical() << "Failed to read instance group file :" << e.cause();
return;