mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 06:10:02 +08:00
Merge pull request #11704 from alalek:apps_avoid_catch_by_value
This commit is contained in:
commit
749530978c
@ -217,7 +217,7 @@ int main(int argc, char** argv)
|
|||||||
(*it)->resetState();
|
(*it)->resetState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::runtime_error exp) {
|
catch (const std::runtime_error& exp) {
|
||||||
std::cout << exp.what() << std::endl;
|
std::cout << exp.what() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user