diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-02-15 16:05:47 -0800 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2019-03-05 10:31:58 -0800 |
commit | e8288d438ca87b3b0712f44925f35b03d6bc1f0a (patch) | |
tree | 90502a614c94862c9a62306e10163878adb1e0e5 /host | |
parent | 521ef15a5ef91cfa7fe04264a47b34855ba6bf89 (diff) | |
download | uhd-e8288d438ca87b3b0712f44925f35b03d6bc1f0a.tar.gz uhd-e8288d438ca87b3b0712f44925f35b03d6bc1f0a.tar.bz2 uhd-e8288d438ca87b3b0712f44925f35b03d6bc1f0a.zip |
types: sid: Remove duplicate operator=()
This fixes a warning about multiple operators. Doesn't change any
functionality.
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/types/sid.hpp | 6 | ||||
-rw-r--r-- | host/tests/sid_t_test.cpp | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/host/include/uhd/types/sid.hpp b/host/include/uhd/types/sid.hpp index fe3ac1ac7..09f4b74b9 100644 --- a/host/include/uhd/types/sid.hpp +++ b/host/include/uhd/types/sid.hpp @@ -198,12 +198,6 @@ public: return *this; } - sid_t operator=(sid_t& sid) - { - set_sid(sid.get_sid()); - return *this; - } - sid_t operator=(const sid_t& sid) { set_sid(sid.get_sid()); diff --git a/host/tests/sid_t_test.cpp b/host/tests/sid_t_test.cpp index 85d33c45e..2a13995df 100644 --- a/host/tests/sid_t_test.cpp +++ b/host/tests/sid_t_test.cpp @@ -114,6 +114,9 @@ BOOST_AUTO_TEST_CASE(test_sid_t_set) BOOST_CHECK_EQUAL(flipped_sid.get(), (uint32_t)0x0cbc0a0b); BOOST_CHECK_EQUAL(flipped_sid.reversed(), sid); + const sid_t sid2 = sid_t(sid.get_sid()); + BOOST_CHECK_EQUAL(sid2, sid); + // In-place sid.reverse(); BOOST_CHECK_EQUAL(sid.get(), (uint32_t)0x0cbc0a0b); |