refactoring catching all exceptions as const ref

This commit is contained in:
tompollok
2018-10-19 22:21:20 +02:00
committed by Alexander Alekhin
parent b74b05d1b3
commit 2da56d5af6
38 changed files with 87 additions and 87 deletions
+4 -4
View File
@@ -147,15 +147,15 @@ int main(int argc, char *argv[])
desMethCmp.push_back(cumSumDist2);
waitKey();
}
catch (Exception& e)
{
catch (const Exception& e)
{
cout << e.msg << endl;
cout << "Cumulative distance cannot be computed." << endl;
desMethCmp.push_back(-1);
}
}
}
}
catch (Exception& e)
catch (const Exception& e)
{
cout << "Feature : " << *itDesc << "\n";
if (itMatcher != typeAlgoMatch.end())