{
}
- DoHWorkerThread(pdns::channel::Sender<CrossProtocolQuery>&& sender) :
+ DoHWorkerThread(pdns::channel::Sender<CrossProtocolQuery>&& sender) noexcept :
d_sender(std::move(sender))
{
}
- DoHWorkerThread(DoHWorkerThread&& rhs) :
- d_sender(std::move(rhs.d_sender))
- {
- }
-
- DoHWorkerThread& operator=(DoHWorkerThread&& rhs)
- {
- d_sender = std::move(rhs.d_sender);
- return *this;
- }
-
+ DoHWorkerThread(DoHWorkerThread&& rhs) noexcept = default;
+ DoHWorkerThread& operator=(DoHWorkerThread&& rhs) noexcept = default;
DoHWorkerThread(const DoHWorkerThread& rhs) = delete;
DoHWorkerThread& operator=(const DoHWorkerThread&) = delete;
remote(remote_), cs(cs_), fd(-1)
{
}
- ConnectionInfo(ConnectionInfo&& rhs) :
+ ConnectionInfo(ConnectionInfo&& rhs) noexcept :
remote(rhs.remote), cs(rhs.cs), fd(rhs.fd), d_restricted(rhs.d_restricted)
{
rhs.cs = nullptr;
ConnectionInfo(const ConnectionInfo& rhs) = delete;
ConnectionInfo& operator=(const ConnectionInfo& rhs) = delete;
- ConnectionInfo& operator=(ConnectionInfo&& rhs)
+ ConnectionInfo& operator=(ConnectionInfo&& rhs) noexcept
{
remote = rhs.remote;
cs = rhs.cs;