diff options
Diffstat (limited to 'protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp')
-rw-r--r-- | protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp b/protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp index e7a93d4399..b48d246064 100644 --- a/protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp +++ b/protocols/Telegram/tdlib/td/tdutils/td/utils/BigNum.cpp @@ -1,5 +1,5 @@ // -// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -28,10 +28,10 @@ class BigNumContext::Impl { Impl() : big_num_context(BN_CTX_new()) { LOG_IF(FATAL, big_num_context == nullptr); } - Impl(const Impl &other) = delete; - Impl &operator=(const Impl &other) = delete; - Impl(Impl &&other) = delete; - Impl &operator=(Impl &&other) = delete; + Impl(const Impl &) = delete; + Impl &operator=(const Impl &) = delete; + Impl(Impl &&) = delete; + Impl &operator=(Impl &&) = delete; ~Impl() { BN_CTX_free(big_num_context); } @@ -40,8 +40,8 @@ class BigNumContext::Impl { BigNumContext::BigNumContext() : impl_(make_unique<Impl>()) { } -BigNumContext::BigNumContext(BigNumContext &&other) noexcept = default; -BigNumContext &BigNumContext::operator=(BigNumContext &&other) noexcept = default; +BigNumContext::BigNumContext(BigNumContext &&) noexcept = default; +BigNumContext &BigNumContext::operator=(BigNumContext &&) noexcept = default; BigNumContext::~BigNumContext() = default; class BigNum::Impl { @@ -53,10 +53,10 @@ class BigNum::Impl { explicit Impl(BIGNUM *big_num) : big_num(big_num) { LOG_IF(FATAL, big_num == nullptr); } - Impl(const Impl &other) = delete; - Impl &operator=(const Impl &other) = delete; - Impl(Impl &&other) = delete; - Impl &operator=(Impl &&other) = delete; + Impl(const Impl &) = delete; + Impl &operator=(const Impl &) = delete; + Impl(Impl &&) = delete; + Impl &operator=(Impl &&) = delete; ~Impl() { BN_clear_free(big_num); } @@ -80,8 +80,8 @@ BigNum &BigNum::operator=(const BigNum &other) { return *this; } -BigNum::BigNum(BigNum &&other) noexcept = default; -BigNum &BigNum::operator=(BigNum &&other) noexcept = default; +BigNum::BigNum(BigNum &&) noexcept = default; +BigNum &BigNum::operator=(BigNum &&) noexcept = default; BigNum::~BigNum() = default; BigNum BigNum::from_binary(Slice str) { |