1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 20:01:12 +08:00

refactoring catching all exceptions as const ref

This commit is contained in:
tompollok
2018-11-10 00:10:43 +01:00
parent 6e3eea5447
commit fcb266f728
18 changed files with 23 additions and 23 deletions

View File

@@ -137,7 +137,7 @@ int main(int argc, char* argv[]) {
cv::imshow("Retina Magno", retinaOutput_magno);
cv::waitKey(10);
}
}catch(cv::Exception e)
}catch(const cv::Exception& e)
{
std::cerr<<"Error using Retina or end of video sequence reached : "<<e.what()<<std::endl;
}