Skip to content

Commit

Permalink
Missing noexcept for scramble_stream and proxy_socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 16, 2024
1 parent ae165da commit 5439632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proxy/include/proxy/proxy_socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ namespace util {

~proxy_socket() = default;

proxy_socket& operator=(proxy_socket&& other)
proxy_socket& operator=(proxy_socket&& other) noexcept
{
next_layer_ = std::move(other.next_layer_);

scramble_ = std::move(other.scramble_);
unscramble_ = std::move(other.unscramble_);
}

proxy_socket(proxy_socket&& other)
proxy_socket(proxy_socket&& other) noexcept
: next_layer_(std::move(other.next_layer_))
, scramble_(std::move(other.scramble_))
, unscramble_(std::move(other.unscramble_))
Expand Down
4 changes: 2 additions & 2 deletions proxy/include/proxy/scramble.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ namespace proxy {
scramble_stream() = default;
~scramble_stream() = default;

scramble_stream(scramble_stream&& other)
scramble_stream(scramble_stream&& other) noexcept
: m_key(std::move(other.m_key))
, m_pos(other.m_pos)
{
other.m_pos = 0;
other.m_key.clear();
}

scramble_stream& operator=(scramble_stream&& other)
scramble_stream& operator=(scramble_stream&& other) noexcept
{
m_key = std::move(other.m_key);
m_pos = other.m_pos;
Expand Down

0 comments on commit 5439632

Please sign in to comment.