aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_base.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-02 17:44:20 -0700
committerJosh Blum <josh@joshknows.com>2010-06-02 17:44:20 -0700
commitb2054a45d45ba85e30ff601159b18f5ebd15dd76 (patch)
treeab0d9919385190f26fee05ebb48656755d0b92cb /host/lib/usrp/dboard_base.cpp
parent33193a06c1bc197a603f831109533230dc14b4c9 (diff)
downloaduhd-b2054a45d45ba85e30ff601159b18f5ebd15dd76.tar.gz
uhd-b2054a45d45ba85e30ff601159b18f5ebd15dd76.tar.bz2
uhd-b2054a45d45ba85e30ff601159b18f5ebd15dd76.zip
Created macros for dealing with pimpls and implemented in code.
Diffstat (limited to 'host/lib/usrp/dboard_base.cpp')
-rw-r--r--host/lib/usrp/dboard_base.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard_base.cpp b/host/lib/usrp/dboard_base.cpp
index bd4b37ef3..eafb8897f 100644
--- a/host/lib/usrp/dboard_base.cpp
+++ b/host/lib/usrp/dboard_base.cpp
@@ -25,17 +25,17 @@ using namespace uhd::usrp;
/***********************************************************************
* dboard_base dboard dboard_base class
**********************************************************************/
-struct dboard_base::dboard_base_impl{
+struct dboard_base::impl{
ctor_args_impl args;
- dboard_base_impl(ctor_args_t args) : args(*args){}
+ impl(ctor_args_t args) : args(*args){}
};
dboard_base::dboard_base(ctor_args_t args){
- _impl = new dboard_base_impl(args);
+ _impl = UHD_PIMPL_MAKE(impl, (args));
}
dboard_base::~dboard_base(void){
- delete _impl;
+ /* NOP */
}
std::string dboard_base::get_subdev_name(void){