From c3dbbec39aef32789aacb872c88801f0c5d15ef7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 28 Jan 2019 17:13:52 +0100 Subject: Catch all exceptions as const --- src/output/UHD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/output') diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp index 9358072..c6c500b 100644 --- a/src/output/UHD.cpp +++ b/src/output/UHD.cpp @@ -432,7 +432,7 @@ bool UHD::is_clk_source_ok(void) const } } } - catch (uhd::lookup_error &e) { + catch (const uhd::lookup_error &e) { suppress_refclk_loss_check = true; etiLog.log(warn, "OutputUHD: This USRP does not have mboard " "sensor for ext clock loss. Check disabled."); @@ -456,7 +456,7 @@ double UHD::get_temperature(void) const try { return std::round(m_usrp->get_tx_sensor("temp", 0).to_real()); } - catch (uhd::lookup_error &e) { + catch (const uhd::lookup_error &e) { return std::numeric_limits::quiet_NaN(); } } -- cgit v1.2.3