diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-26 16:26:59 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-26 16:26:59 +0200 |
commit | a2e5b821b45c54d77208d1a34c3cd0abc126b75a (patch) | |
tree | d246409bc09b65e19e99daabc3de4b82d574f606 /AK | |
parent | f0a6b42066a2560c6fa6171bc4706b8815e32a58 (diff) | |
download | serenity-a2e5b821b45c54d77208d1a34c3cd0abc126b75a.zip |
AK: Simplify NetworkOrdered somewhat.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/NetworkOrdered.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/AK/NetworkOrdered.h b/AK/NetworkOrdered.h index 4c5aa273cd..ad657007e8 100644 --- a/AK/NetworkOrdered.h +++ b/AK/NetworkOrdered.h @@ -21,27 +21,12 @@ template<typename T> class [[gnu::packed]] NetworkOrdered { public: - NetworkOrdered() - : m_network_value(0) - { - } - + NetworkOrdered() {} NetworkOrdered(const T& host_value) : m_network_value(convert_between_host_and_network(host_value)) { } - NetworkOrdered(const NetworkOrdered& other) - : m_network_value(other.m_network_value) - { - } - - NetworkOrdered& operator=(const NetworkOrdered& other) - { - m_network_value = other.m_network_value; - return *this; - } - operator T() const { return convert_between_host_and_network(m_network_value); } private: |