aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-28 12:47:31 -0700
committerMichael West <michael.west@ettus.com>2013-10-28 12:47:31 -0700
commit0666cc999e772d3de8b8f4200850d6a1bc0a2dbc (patch)
tree981a1cb1253a990926152c88b954a87f98ac9034
parent8f361bb050cd7d167f6a30ad8ef1d7cdc2163b51 (diff)
downloaduhd-0666cc999e772d3de8b8f4200850d6a1bc0a2dbc.tar.gz
uhd-0666cc999e772d3de8b8f4200850d6a1bc0a2dbc.tar.bz2
uhd-0666cc999e772d3de8b8f4200850d6a1bc0a2dbc.zip
CID 1104334: Fixed big parameter passed by value.
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index edee46cd5..e9f60f765 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -267,7 +267,7 @@ static std::string get_band(double freq) {
* \return a voltage to feed the TVRX analog gain
*/
-static double gain_interp(double gain, boost::array<double, 17> db_vector, boost::array<double, 17> volts_vector) {
+static double gain_interp(double gain, const boost::array<double, 17>& db_vector, const boost::array<double, 17>& volts_vector) {
double volts;
gain = uhd::clip<double>(gain, db_vector.front(), db_vector.back()); //let's not get carried away here