aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/zero_copy.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-06 11:53:53 -0700
committerJosh Blum <josh@joshknows.com>2010-08-06 11:53:53 -0700
commit7e8a1f296f934a5546cdad575bcbe030a78b8bb1 (patch)
tree93cf019254b3e89c4903e7f0a943836d2febc0d5 /host/lib/transport/zero_copy.cpp
parent1f16bb39ad8bc47a66a71647497c7fefb7e752bc (diff)
downloaduhd-7e8a1f296f934a5546cdad575bcbe030a78b8bb1.tar.gz
uhd-7e8a1f296f934a5546cdad575bcbe030a78b8bb1.tar.bz2
uhd-7e8a1f296f934a5546cdad575bcbe030a78b8bb1.zip
uhd: use constructor for impl class to avoid msvc warnings
Diffstat (limited to 'host/lib/transport/zero_copy.cpp')
-rw-r--r--host/lib/transport/zero_copy.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/transport/zero_copy.cpp b/host/lib/transport/zero_copy.cpp
index 42f69d77b..8a1cde694 100644
--- a/host/lib/transport/zero_copy.cpp
+++ b/host/lib/transport/zero_copy.cpp
@@ -54,12 +54,14 @@ private:
//! phony zero-copy recv interface implementation
struct phony_zero_copy_recv_if::impl{
+ impl(size_t max_buff_size) : max_buff_size(max_buff_size){
+ /* NOP */
+ }
size_t max_buff_size;
};
phony_zero_copy_recv_if::phony_zero_copy_recv_if(size_t max_buff_size){
- _impl = UHD_PIMPL_MAKE(impl, ());
- _impl->max_buff_size = max_buff_size;
+ _impl = UHD_PIMPL_MAKE(impl, (max_buff_size));
}
phony_zero_copy_recv_if::~phony_zero_copy_recv_if(void){