aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2014-08-13 08:44:31 -0700
committerMartin Braun <martin.braun@ettus.com>2014-09-01 17:58:24 +0200
commit654c5b06c086ce8b13a5be07e680004c96da8501 (patch)
treebe8adaf06d3b1cebbd20e1b1856df61bfa06ce87 /host/lib/usrp/x300
parentd88ae533c48495dbb86ca5fe2e7ddd05ab3c8a4e (diff)
downloaduhd-654c5b06c086ce8b13a5be07e680004c96da8501.tar.gz
uhd-654c5b06c086ce8b13a5be07e680004c96da8501.tar.bz2
uhd-654c5b06c086ce8b13a5be07e680004c96da8501.zip
Added missing pure virtual destructors to base classes
Diffstat (limited to 'host/lib/usrp/x300')
-rw-r--r--host/lib/usrp/x300/x300_adc_ctrl.cpp6
-rw-r--r--host/lib/usrp/x300/x300_adc_ctrl.hpp4
-rw-r--r--host/lib/usrp/x300/x300_clock_ctrl.cpp4
-rw-r--r--host/lib/usrp/x300/x300_clock_ctrl.hpp2
-rw-r--r--host/lib/usrp/x300/x300_dac_ctrl.cpp6
-rw-r--r--host/lib/usrp/x300/x300_dac_ctrl.hpp4
6 files changed, 22 insertions, 4 deletions
diff --git a/host/lib/usrp/x300/x300_adc_ctrl.cpp b/host/lib/usrp/x300/x300_adc_ctrl.cpp
index 75bfb048c..53d1662ae 100644
--- a/host/lib/usrp/x300/x300_adc_ctrl.cpp
+++ b/host/lib/usrp/x300/x300_adc_ctrl.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -25,6 +25,10 @@
using namespace uhd;
+x300_adc_ctrl::~x300_adc_ctrl(void){
+ /* NOP */
+}
+
/*!
* A X300 codec control specific to the ads62p48 ic.
*/
diff --git a/host/lib/usrp/x300/x300_adc_ctrl.hpp b/host/lib/usrp/x300/x300_adc_ctrl.hpp
index fce40a434..c8ce19c94 100644
--- a/host/lib/usrp/x300/x300_adc_ctrl.hpp
+++ b/host/lib/usrp/x300/x300_adc_ctrl.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -27,6 +27,8 @@ class x300_adc_ctrl : boost::noncopyable
public:
typedef boost::shared_ptr<x300_adc_ctrl> sptr;
+ virtual ~x300_adc_ctrl(void) = 0;
+
/*!
* Make a codec control for the ADC.
* \param iface a pointer to the interface object
diff --git a/host/lib/usrp/x300/x300_clock_ctrl.cpp b/host/lib/usrp/x300/x300_clock_ctrl.cpp
index da97dd2cf..d30c31127 100644
--- a/host/lib/usrp/x300/x300_clock_ctrl.cpp
+++ b/host/lib/usrp/x300/x300_clock_ctrl.cpp
@@ -28,6 +28,10 @@ static const double X300_REF_CLK_OUT_RATE = 10e6;
using namespace uhd;
+x300_clock_ctrl::~x300_clock_ctrl(void){
+ /* NOP */
+}
+
class x300_clock_ctrl_impl : public x300_clock_ctrl {
public:
diff --git a/host/lib/usrp/x300/x300_clock_ctrl.hpp b/host/lib/usrp/x300/x300_clock_ctrl.hpp
index e9904d25c..40b62b09a 100644
--- a/host/lib/usrp/x300/x300_clock_ctrl.hpp
+++ b/host/lib/usrp/x300/x300_clock_ctrl.hpp
@@ -42,6 +42,8 @@ public:
typedef boost::shared_ptr<x300_clock_ctrl> sptr;
+ virtual ~x300_clock_ctrl(void) = 0;
+
static sptr make(uhd::spi_iface::sptr spiface,
const size_t slaveno,
const size_t hw_rev,
diff --git a/host/lib/usrp/x300/x300_dac_ctrl.cpp b/host/lib/usrp/x300/x300_dac_ctrl.cpp
index 5eae9cc48..a9d9a7730 100644
--- a/host/lib/usrp/x300/x300_dac_ctrl.cpp
+++ b/host/lib/usrp/x300/x300_dac_ctrl.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -32,6 +32,10 @@ using namespace uhd;
#define read_ad9146_reg(addr) \
(_iface->read_spi(_slaveno, spi_config_t::EDGE_RISE, ((addr) << 8) | (1 << 15), 16) & 0xff)
+x300_dac_ctrl::~x300_dac_ctrl(void){
+ /* NOP */
+}
+
/*!
* A X300 codec control specific to the ad9146 ic.
*/
diff --git a/host/lib/usrp/x300/x300_dac_ctrl.hpp b/host/lib/usrp/x300/x300_dac_ctrl.hpp
index 0db7e1e35..78046cee5 100644
--- a/host/lib/usrp/x300/x300_dac_ctrl.hpp
+++ b/host/lib/usrp/x300/x300_dac_ctrl.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2013 Ettus Research LLC
+// Copyright 2010-2014 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -27,6 +27,8 @@ class x300_dac_ctrl : boost::noncopyable
public:
typedef boost::shared_ptr<x300_dac_ctrl> sptr;
+ virtual ~x300_dac_ctrl(void) = 0;
+
/*!
* Make a codec control for the DAC.
* \param iface a pointer to the interface object