diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-02-15 16:05:47 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-02-28 10:24:52 -0800 |
commit | 7193670fb3abaf92b5464d466adfea4cf6f888ee (patch) | |
tree | eb4f9efdad714562765721b069300bc47ee0c08a /host/tests | |
parent | a3213183dcf3f5a4e88adbc1f6cbf5187f421027 (diff) | |
download | uhd-7193670fb3abaf92b5464d466adfea4cf6f888ee.tar.gz uhd-7193670fb3abaf92b5464d466adfea4cf6f888ee.tar.bz2 uhd-7193670fb3abaf92b5464d466adfea4cf6f888ee.zip |
types: sid: Remove duplicate operator=()
This fixes a warning about multiple operators. Doesn't change any
functionality.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/sid_t_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |