From 15bdf9b64b3245e1bf7a7603faf71ce72e1dac69 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 30 May 2019 13:43:37 -0700 Subject: 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. --- host/include/uhd/utils/dirty_tracked.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'host/include') 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&) = default; /*! * Get underlying data -- cgit v1.2.3