1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-31 20:16:57 +00:00

Fix TeamCity Code Style (#3045)

This commit is contained in:
Antoine Cœur 2022-05-02 02:06:32 +08:00 committed by GitHub
parent d498aa1ae1
commit 9069e4c910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,10 +51,12 @@ private:
Val() noexcept = default;
Val(Val const&) = delete;
Val& operator=(Val const&) = delete;
Val(Val&& that) noexcept {
Val(Val&& that) noexcept
{
*this = std::move(that);
}
Val& operator=(Val&& that) noexcept {
Val& operator=(Val&& that) noexcept
{
std::swap(this->fd_, that.fd_);
std::swap(this->writable_, that.writable_);
return *this;