Catch C++ exceptions by const reference

Fixes #2277
This commit is contained in:
Charles Milette committed 2018-05-19 19:18:26 -04:00
1 parent b9fd381eee
commit 72c0002b45
22 files changed
+36 -38

No files matched your search

@@ -95,7 +95,7 @@ void Flame::FileResolvingTask::netJobFinished()
}
out.resolved = true;
}
catch(JSONValidationError & e)
catch (const JSONValidationError &e)
{
auto & out = m_toProcess.files[index];
qCritical() << "Resolving of" << out.projectId << out.fileId << "failed because of a parsing error:";