aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-05-30 13:43:37 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:09 -0800
commit15bdf9b64b3245e1bf7a7603faf71ce72e1dac69 (patch)
treeeb31433ff2c347702cb75d72bcd1a794e7826dac /host/include
parent64dd48776c57750b7df556c3ce6058219bec111c (diff)
downloaduhd-15bdf9b64b3245e1bf7a7603faf71ce72e1dac69.tar.gz
uhd-15bdf9b64b3245e1bf7a7603faf71ce72e1dac69.tar.bz2
uhd-15bdf9b64b3245e1bf7a7603faf71ce72e1dac69.zip
utils: dirty_tracked: Remove custom copy constructor
The custom copy ctor for dirty_tracked was using the = operator, which wouldn't necessarily copy the dirty flag. By removing it (and thus using the default copy ctor), the copied dirty_tracked object now has the same value *and* dirty flag as the original.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/dirty_tracked.hpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/host/include/uhd/utils/dirty_tracked.hpp b/host/include/uhd/utils/dirty_tracked.hpp
index 3a3397f38..f01593d50 100644
--- a/host/include/uhd/utils/dirty_tracked.hpp
+++ b/host/include/uhd/utils/dirty_tracked.hpp
@@ -44,13 +44,7 @@ public:
{
}
- /*!
- * Copy ctor: Assign source to this type
- */
- dirty_tracked(const dirty_tracked& source)
- {
- *this = source;
- }
+ dirty_tracked(const uhd::dirty_tracked<data_t>&) = default;
/*!
* Get underlying data