refactoring catching all exceptions as const ref
This commit is contained in:
committed by
Alexander Alekhin
parent
b74b05d1b3
commit
2da56d5af6
@@ -523,7 +523,7 @@ int main(int argc, char *argv[])
|
||||
imshow(winName, result);
|
||||
imshow("Original", img);
|
||||
}
|
||||
catch (Exception& e)
|
||||
catch (const Exception& e)
|
||||
{
|
||||
cout << "Feature: " << *itDesc << "\n";
|
||||
cout << e.msg << endl;
|
||||
|
||||
Reference in New Issue
Block a user