summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/usrp_block_impl.cc
diff options
context:
space:
mode:
authorAnders Kalør <anders@kaloer.com>2019-08-14 19:42:24 +0200
committerMarcus Müller <marcus@hostalia.de>2019-08-15 14:57:49 +0200
commit41348a2b6f7cdb200a88dbcfba936e5a438094c6 (patch)
treede24e4eabc27b706ea7fd54fe600d4c2c128682e /gr-uhd/lib/usrp_block_impl.cc
parentd50e7b504e1482b1589d9f31a9327feae00e3fb5 (diff)
clang-tidy: misc-throw-by-value-catch-by-reference
Exceptions should be thrown by value and caught by reference. Closes #2708
Diffstat (limited to 'gr-uhd/lib/usrp_block_impl.cc')
-rw-r--r--gr-uhd/lib/usrp_block_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-uhd/lib/usrp_block_impl.cc b/gr-uhd/lib/usrp_block_impl.cc
index 8b60a4338a..1aa17bf3ca 100644
--- a/gr-uhd/lib/usrp_block_impl.cc
+++ b/gr-uhd/lib/usrp_block_impl.cc
@@ -238,7 +238,7 @@ bool usrp_block_impl::_unpack_chan_command(std::string& command,
} else {
return false;
}
- } catch (pmt::wrong_type w) {
+ } catch (pmt::wrong_type& w) {
return false;
}
return true;