mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 21:40:49 +08:00
refactoring catching all exceptions as const ref
This commit is contained in:
@@ -24,7 +24,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
|
||||
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
|
||||
try {
|
||||
throw std::exception();
|
||||
} catch(std::exception& e) {
|
||||
} catch(const std::exception& e) {
|
||||
mexErrMsgTxt(e.what());
|
||||
} catch(...) {
|
||||
mexErrMsgTxt("Incorrect exception caught!");
|
||||
|
Reference in New Issue
Block a user