mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
apps: catch() with "const reference"
This commit is contained in:
parent
7c3090ddcf
commit
caa6915b83
@ -217,7 +217,7 @@ int main(int argc, char** argv)
|
||||
(*it)->resetState();
|
||||
}
|
||||
}
|
||||
catch (std::runtime_error exp) {
|
||||
catch (const std::runtime_error& exp) {
|
||||
std::cout << exp.what() << std::endl;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user