Merge pull request #11704 from alalek:apps_avoid_catch_by_value

This commit is contained in:
Alexander Alekhin 2018-06-07 11:13:30 +00:00
commit 749530978c

View File

@ -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;
}