1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-18 23:37:05 +01:00

catch exceptions by ref

This commit is contained in:
2024-02-10 19:38:02 +01:00
parent e8b0565164
commit 442624912e
3 changed files with 9 additions and 9 deletions

View File

@ -75,7 +75,7 @@ void loadAndCheck(vector<DMatSample> &sample, const vector<string> &fileName)
gotSize = true;
}
}
catch (Exceptions::Definition)
catch (Exceptions::Definition &)
{
failed.insert(i);
}
@ -233,7 +233,7 @@ int main(int argc, char *argv[])
{
process<DSample>(outFileName, fileName, code);
}
catch (Exceptions::Definition)
catch (Exceptions::Definition &)
{
process<DMatSample>(outFileName, fileName, code);
}