aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_base.hpp
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2016-06-24 16:48:32 -0400
committerMartin Braun <martin.braun@ettus.com>2016-08-01 18:49:53 -0700
commita5909ec14bf162e60aedfad23ad5cf8cc12c9dc3 (patch)
tree97f6ddbff5167020bd4e8e53430798f0ff27c5b4 /host/lib/transport/libusb1_base.hpp
parent3a2d11e53a4d7514440d0a5a2e5fab93a949a21a (diff)
downloaduhd-a5909ec14bf162e60aedfad23ad5cf8cc12c9dc3.tar.gz
uhd-a5909ec14bf162e60aedfad23ad5cf8cc12c9dc3.tar.bz2
uhd-a5909ec14bf162e60aedfad23ad5cf8cc12c9dc3.zip
usb: add virtual destructors where needed; make virtual destructors out-of-line from class definition to reduce number of vtables emitted (according to clang).
Diffstat (limited to 'host/lib/transport/libusb1_base.hpp')
-rw-r--r--host/lib/transport/libusb1_base.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/transport/libusb1_base.hpp b/host/lib/transport/libusb1_base.hpp
index 2ff1291d9..6d104bc75 100644
--- a/host/lib/transport/libusb1_base.hpp
+++ b/host/lib/transport/libusb1_base.hpp
@@ -67,7 +67,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<session> sptr;
- virtual ~session(void) = 0;
+ virtual ~session(void);
/*!
* Level 0: no messages ever printed by the library (default)
@@ -92,7 +92,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<device> sptr;
- virtual ~device(void) = 0;
+ virtual ~device(void);
//! get the underlying device pointer
virtual libusb_device *get(void) const = 0;
@@ -106,7 +106,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_list> sptr;
- virtual ~device_list(void) = 0;
+ virtual ~device_list(void);
//! make a new device list
static sptr make(void);
@@ -125,7 +125,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_descriptor> sptr;
- virtual ~device_descriptor(void) = 0;
+ virtual ~device_descriptor(void);
//! make a new descriptor from a device reference
static sptr make(device::sptr);
@@ -143,7 +143,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<device_handle> sptr;
- virtual ~device_handle(void) = 0;
+ virtual ~device_handle(void);
//! get a cached handle or make a new one given the device
static sptr get_cached_handle(device::sptr);
@@ -172,7 +172,7 @@ namespace libusb {
public:
typedef boost::shared_ptr<special_handle> sptr;
- virtual ~special_handle(void) = 0;
+ virtual ~special_handle(void);
//! make a new special handle from device
static sptr make(device::sptr);