From caa6915b83b31eb4ae3c5c0b3e7059a29537c442 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 6 Jun 2018 18:23:29 +0300 Subject: [PATCH] apps: catch() with "const reference" --- apps/interactive-calibration/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/interactive-calibration/main.cpp b/apps/interactive-calibration/main.cpp index 10d3690b89..f3d1e5d66b 100644 --- a/apps/interactive-calibration/main.cpp +++ b/apps/interactive-calibration/main.cpp @@ -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; }