Catch exceptions by const-reference
authorMichał Janiszewski <janisozaur+signed@gmail.com>
Tue, 16 Oct 2018 19:09:26 +0000 (21:09 +0200)
committerMichał Janiszewski <janisozaur+signed@gmail.com>
Tue, 16 Oct 2018 20:43:54 +0000 (22:43 +0200)
commitc8e6ce304f8f113d334227c6fcec3d5f696d1c6e
tree68431cef757af2e43853e76fb4da3888ce45ae1b
parent24ced3d657f1de9fae8ba82a29d9b360b2735cd9
Catch exceptions by const-reference

Exceptions caught by value incur needless cost in C++, most of them can
be caught by const-reference, especially as nearly none are actually
used. This could allow compiler generate a slightly more efficient code.
modules/core/src/copy.cpp
modules/core/test/test_ds.cpp
modules/imgproc/src/canny.cpp
modules/imgproc/src/deriv.cpp
modules/imgproc/src/morph.cpp
modules/imgproc/src/resize.cpp
modules/imgproc/src/smooth.cpp