aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-05-05 13:51:19 +0300
committerlevlam <levlam@telegram.org>2023-05-05 13:51:19 +0300
commitc0911577f766a2bc1c108b2e6d37b1cafa3dc323 (patch)
tree9c77da945c6ceafbab24745d874c227f4cd62d47
parentc2795ca9046e8de5197262743c4162c027cee724 (diff)
Use empty name for unused move constructor/assignment parameter.
-rw-r--r--td/telegram/Client.cpp8
-rw-r--r--td/telegram/ClientActor.cpp4
-rw-r--r--td/telegram/ClientActor.h4
-rw-r--r--td/telegram/Global.h4
-rw-r--r--td/telegram/MessagesManager.h4
-rw-r--r--td/telegram/OrderedMessage.h4
-rw-r--r--td/telegram/SecretChatsManager.cpp8
-rw-r--r--td/telegram/files/FileGenerateManager.cpp4
-rw-r--r--td/telegram/files/FileGenerateManager.h4
-rw-r--r--td/telegram/files/FileManager.h8
-rw-r--r--td/telegram/net/ConnectionCreator.cpp4
-rw-r--r--td/telegram/net/NetQuery.h4
-rw-r--r--td/telegram/net/SessionMultiProxy.h4
-rw-r--r--td/telegram/net/TempAuthKeyWatchdog.h8
-rw-r--r--td/tl/TlObject.h4
-rw-r--r--td/tl/tl_jni_object.h6
-rw-r--r--tdactor/td/actor/MultiPromise.h8
-rw-r--r--tdactor/td/actor/PromiseFuture.h20
-rw-r--r--tdactor/td/actor/SignalSlot.h4
-rw-r--r--tdactor/td/actor/impl/ActorId-decl.h12
-rw-r--r--tdactor/td/actor/impl/Event.h2
-rw-r--r--tdactor/td/actor/impl/Scheduler-decl.h8
-rw-r--r--tdactor/td/actor/impl/Scheduler.h8
-rw-r--r--tddb/td/db/SqliteStatement.h8
-rw-r--r--tddb/td/db/binlog/Binlog.h8
-rw-r--r--tddb/td/db/binlog/ConcurrentBinlog.h8
-rw-r--r--tdnet/td/net/HttpReader.h8
-rw-r--r--tdutils/td/utils/BigNum.cpp24
-rw-r--r--tdutils/td/utils/BigNum.h4
-rw-r--r--tdutils/td/utils/CancellationToken.h4
-rw-r--r--tdutils/td/utils/Destructor.h16
-rw-r--r--tdutils/td/utils/EpochBasedMemoryReclamation.h16
-rw-r--r--tdutils/td/utils/FlatHashTable.h4
-rw-r--r--tdutils/td/utils/Gzip.cpp8
-rw-r--r--tdutils/td/utils/HazardPointers.h16
-rw-r--r--tdutils/td/utils/JsonBuilder.h10
-rw-r--r--tdutils/td/utils/MapNode.h12
-rw-r--r--tdutils/td/utils/MpmcQueue.h16
-rw-r--r--tdutils/td/utils/ObjectPool.h4
-rw-r--r--tdutils/td/utils/Promise.h16
-rw-r--r--tdutils/td/utils/ScopeGuard.h14
-rw-r--r--tdutils/td/utils/SetNode.h12
-rw-r--r--tdutils/td/utils/SharedObjectPool.h8
-rw-r--r--tdutils/td/utils/StackAllocator.h6
-rw-r--r--tdutils/td/utils/TlStorerToString.h4
-rw-r--r--tdutils/td/utils/buffer.h4
-rw-r--r--tdutils/td/utils/crypto.h4
-rw-r--r--tdutils/td/utils/optional.h8
-rw-r--r--tdutils/td/utils/port/MemoryMapping.cpp4
-rw-r--r--tdutils/td/utils/port/MemoryMapping.h4
-rw-r--r--tdutils/td/utils/port/detail/ThreadPthread.h4
-rw-r--r--tdutils/td/utils/port/detail/ThreadStl.h4
-rw-r--r--tdutils/td/utils/tl_parsers.h4
-rw-r--r--tdutils/td/utils/tl_storers.h8
-rw-r--r--tdutils/td/utils/unique_ptr.h4
-rw-r--r--tdutils/td/utils/unique_value_ptr.h4
-rw-r--r--tdutils/test/ConcurrentHashMap.cpp2
57 files changed, 212 insertions, 212 deletions
diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp
index 35ab55845..65071380b 100644
--- a/td/telegram/Client.cpp
+++ b/td/telegram/Client.cpp
@@ -653,8 +653,8 @@ Client::Response Client::execute(Request &&request) {
return response;
}
-Client::Client(Client &&other) noexcept = default;
-Client &Client::operator=(Client &&other) noexcept = default;
+Client::Client(Client &&) noexcept = default;
+Client &Client::operator=(Client &&) noexcept = default;
Client::~Client() = default;
ClientManager::ClientManager() : impl_(std::make_unique<Impl>()) {
@@ -706,8 +706,8 @@ void ClientManager::set_log_message_callback(int max_verbosity_level, LogMessage
}
}
-ClientManager::ClientManager(ClientManager &&other) noexcept = default;
-ClientManager &ClientManager::operator=(ClientManager &&other) noexcept = default;
+ClientManager::ClientManager(ClientManager &&) noexcept = default;
+ClientManager &ClientManager::operator=(ClientManager &&) noexcept = default;
ClientManager::~ClientManager() = default;
ClientManager *ClientManager::get_manager_singleton() {
diff --git a/td/telegram/ClientActor.cpp b/td/telegram/ClientActor.cpp
index b3efe17c0..d1d8e6d98 100644
--- a/td/telegram/ClientActor.cpp
+++ b/td/telegram/ClientActor.cpp
@@ -28,9 +28,9 @@ void ClientActor::request(uint64 id, td_api::object_ptr<td_api::Function> reques
ClientActor::~ClientActor() = default;
-ClientActor::ClientActor(ClientActor &&other) noexcept = default;
+ClientActor::ClientActor(ClientActor &&) noexcept = default;
-ClientActor &ClientActor::operator=(ClientActor &&other) noexcept = default;
+ClientActor &ClientActor::operator=(ClientActor &&) noexcept = default;
td_api::object_ptr<td_api::Object> ClientActor::execute(td_api::object_ptr<td_api::Function> request) {
return Td::static_request(std::move(request));
diff --git a/td/telegram/ClientActor.h b/td/telegram/ClientActor.h
index a4918fc38..7e0c5f04d 100644
--- a/td/telegram/ClientActor.h
+++ b/td/telegram/ClientActor.h
@@ -76,9 +76,9 @@ class ClientActor final : public Actor {
*/
ClientActor &operator=(ClientActor &&other) noexcept;
- ClientActor(const ClientActor &other) = delete;
+ ClientActor(const ClientActor &) = delete;
- ClientActor &operator=(const ClientActor &other) = delete;
+ ClientActor &operator=(const ClientActor &) = delete;
private:
void start_up() final;
diff --git a/td/telegram/Global.h b/td/telegram/Global.h
index 794dcb9e0..5f678a2c7 100644
--- a/td/telegram/Global.h
+++ b/td/telegram/Global.h
@@ -73,8 +73,8 @@ class Global final : public ActorContext {
~Global() final;
Global(const Global &) = delete;
Global &operator=(const Global &) = delete;
- Global(Global &&other) = delete;
- Global &operator=(Global &&other) = delete;
+ Global(Global &&) = delete;
+ Global &operator=(Global &&) = delete;
static constexpr int32 ID = -572104940;
int32 get_id() const final {
diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h
index eb7eecf3a..31950936b 100644
--- a/td/telegram/MessagesManager.h
+++ b/td/telegram/MessagesManager.h
@@ -1456,8 +1456,8 @@ class MessagesManager final : public Actor {
Dialog() = default;
Dialog(const Dialog &) = delete;
Dialog &operator=(const Dialog &) = delete;
- Dialog(Dialog &&other) = delete;
- Dialog &operator=(Dialog &&other) = delete;
+ Dialog(Dialog &&) = delete;
+ Dialog &operator=(Dialog &&) = delete;
~Dialog() = default;
template <class StorerT>
diff --git a/td/telegram/OrderedMessage.h b/td/telegram/OrderedMessage.h
index e9080d0b3..3471de822 100644
--- a/td/telegram/OrderedMessage.h
+++ b/td/telegram/OrderedMessage.h
@@ -72,8 +72,8 @@ class OrderedMessages {
public:
IteratorBase(const IteratorBase &) = delete;
IteratorBase &operator=(const IteratorBase &) = delete;
- IteratorBase(IteratorBase &&other) = default;
- IteratorBase &operator=(IteratorBase &&other) = default;
+ IteratorBase(IteratorBase &&) = default;
+ IteratorBase &operator=(IteratorBase &&) = default;
void operator++() {
if (stack_.empty()) {
diff --git a/td/telegram/SecretChatsManager.cpp b/td/telegram/SecretChatsManager.cpp
index 9dd57bf23..47e7911c1 100644
--- a/td/telegram/SecretChatsManager.cpp
+++ b/td/telegram/SecretChatsManager.cpp
@@ -294,10 +294,10 @@ unique_ptr<SecretChatActor::Context> SecretChatsManager::make_secret_chat_contex
: secret_chat_id_(SecretChatId(id)), parent_(std::move(parent)), secret_chat_db_(std::move(secret_chat_db)) {
sequence_dispatcher_ = create_actor<SequenceDispatcher>("SecretChat SequenceDispatcher");
}
- Context(const Context &other) = delete;
- Context &operator=(const Context &other) = delete;
- Context(Context &&other) = delete;
- Context &operator=(Context &&other) = delete;
+ Context(const Context &) = delete;
+ Context &operator=(const Context &) = delete;
+ Context(Context &&) = delete;
+ Context &operator=(Context &&) = delete;
~Context() final {
send_closure(std::move(sequence_dispatcher_), &SequenceDispatcher::close_silent);
}
diff --git a/td/telegram/files/FileGenerateManager.cpp b/td/telegram/files/FileGenerateManager.cpp
index 3b5898f4d..c353aacde 100644
--- a/td/telegram/files/FileGenerateManager.cpp
+++ b/td/telegram/files/FileGenerateManager.cpp
@@ -389,8 +389,8 @@ class FileExternalGenerateActor final : public FileGenerateActor {
};
FileGenerateManager::Query::~Query() = default;
-FileGenerateManager::Query::Query(Query &&other) noexcept = default;
-FileGenerateManager::Query &FileGenerateManager::Query::operator=(Query &&other) noexcept = default;
+FileGenerateManager::Query::Query(Query &&) noexcept = default;
+FileGenerateManager::Query &FileGenerateManager::Query::operator=(Query &&) noexcept = default;
static Status check_mtime(std::string &conversion, CSlice original_path) {
if (original_path.empty()) {
diff --git a/td/telegram/files/FileGenerateManager.h b/td/telegram/files/FileGenerateManager.h
index 65ab357b8..8eb6685a5 100644
--- a/td/telegram/files/FileGenerateManager.h
+++ b/td/telegram/files/FileGenerateManager.h
@@ -49,8 +49,8 @@ class FileGenerateManager final : public Actor {
private:
struct Query {
Query() = default;
- Query(const Query &other) = delete;
- Query &operator=(const Query &other) = delete;
+ Query(const Query &) = delete;
+ Query &operator=(const Query &) = delete;
Query(Query &&other) noexcept;
Query &operator=(Query &&other) noexcept;
~Query();
diff --git a/td/telegram/files/FileManager.h b/td/telegram/files/FileManager.h
index cf5d549c8..5a42c3487 100644
--- a/td/telegram/files/FileManager.h
+++ b/td/telegram/files/FileManager.h
@@ -411,10 +411,10 @@ class FileManager final : public FileLoadManager::Callback {
};
explicit FileManager(unique_ptr<Context> context);
- FileManager(const FileManager &other) = delete;
- FileManager &operator=(const FileManager &other) = delete;
- FileManager(FileManager &&other) = delete;
- FileManager &operator=(FileManager &&other) = delete;
+ FileManager(const FileManager &) = delete;
+ FileManager &operator=(const FileManager &) = delete;
+ FileManager(FileManager &&) = delete;
+ FileManager &operator=(FileManager &&) = delete;
~FileManager() final;
static bool is_remotely_generated_file(Slice conversion);
diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp
index 109acf2fd..00b1d51c5 100644
--- a/td/telegram/net/ConnectionCreator.cpp
+++ b/td/telegram/net/ConnectionCreator.cpp
@@ -132,9 +132,9 @@ void ConnectionCreator::ClientInfo::add_session_id(int64 session_id) {
ConnectionCreator::ConnectionCreator(ActorShared<> parent) : parent_(std::move(parent)) {
}
-ConnectionCreator::ConnectionCreator(ConnectionCreator &&other) = default;
+ConnectionCreator::ConnectionCreator(ConnectionCreator &&) = default;
-ConnectionCreator &ConnectionCreator::operator=(ConnectionCreator &&other) = default;
+ConnectionCreator &ConnectionCreator::operator=(ConnectionCreator &&) = default;
ConnectionCreator::~ConnectionCreator() = default;
diff --git a/td/telegram/net/NetQuery.h b/td/telegram/net/NetQuery.h
index 0cce7bb0f..0960ba0db 100644
--- a/td/telegram/net/NetQuery.h
+++ b/td/telegram/net/NetQuery.h
@@ -311,8 +311,8 @@ class NetQuery final : public TsListNode<NetQueryDebug> {
this->store(other.load(std::memory_order_relaxed), std::memory_order_relaxed);
return *this;
}
- movable_atomic(const movable_atomic &other) = delete;
- movable_atomic &operator=(const movable_atomic &other) = delete;
+ movable_atomic(const movable_atomic &) = delete;
+ movable_atomic &operator=(const movable_atomic &) = delete;
~movable_atomic() = default;
};
diff --git a/td/telegram/net/SessionMultiProxy.h b/td/telegram/net/SessionMultiProxy.h
index cea1bfad2..16f3f0426 100644
--- a/td/telegram/net/SessionMultiProxy.h
+++ b/td/telegram/net/SessionMultiProxy.h
@@ -22,8 +22,8 @@ class SessionMultiProxy final : public Actor {
SessionMultiProxy(int32 session_count, std::shared_ptr<AuthDataShared> shared_auth_data, bool is_primary,
bool is_main, bool use_pfs, bool allow_media_only, bool is_media, bool is_cdn,
bool need_destroy_auth_key);
- SessionMultiProxy(const SessionMultiProxy &other) = delete;
- SessionMultiProxy &operator=(const SessionMultiProxy &other) = delete;
+ SessionMultiProxy(const SessionMultiProxy &) = delete;
+ SessionMultiProxy &operator=(const SessionMultiProxy &) = delete;
~SessionMultiProxy() final;
void send(NetQueryPtr query);
diff --git a/td/telegram/net/TempAuthKeyWatchdog.h b/td/telegram/net/TempAuthKeyWatchdog.h
index d66b37d68..4897cd7d6 100644
--- a/td/telegram/net/TempAuthKeyWatchdog.h
+++ b/td/telegram/net/TempAuthKeyWatchdog.h
@@ -28,10 +28,10 @@ class TempAuthKeyWatchdog final : public NetQueryCallback {
explicit RegisteredAuthKeyImpl(int64 auth_key_id)
: watchdog_(G()->temp_auth_key_watchdog()), auth_key_id_(auth_key_id) {
}
- RegisteredAuthKeyImpl(const RegisteredAuthKeyImpl &other) = delete;
- RegisteredAuthKeyImpl &operator=(const RegisteredAuthKeyImpl &other) = delete;
- RegisteredAuthKeyImpl(RegisteredAuthKeyImpl &&other) = delete;
- RegisteredAuthKeyImpl &operator=(RegisteredAuthKeyImpl &&other) = delete;
+ RegisteredAuthKeyImpl(const RegisteredAuthKeyImpl &) = delete;
+ RegisteredAuthKeyImpl &operator=(const RegisteredAuthKeyImpl &) = delete;
+ RegisteredAuthKeyImpl(RegisteredAuthKeyImpl &&) = delete;
+ RegisteredAuthKeyImpl &operator=(RegisteredAuthKeyImpl &&) = delete;
~RegisteredAuthKeyImpl() {
send_closure(watchdog_, &TempAuthKeyWatchdog::unregister_auth_key_id_impl, auth_key_id_);
}
diff --git a/td/tl/TlObject.h b/td/tl/TlObject.h
index 5c5e76d2c..c1b363fc9 100644
--- a/td/tl/TlObject.h
+++ b/td/tl/TlObject.h
@@ -97,8 +97,8 @@ class unique_ptr {
using element_type = T;
unique_ptr() noexcept = default;
- unique_ptr(const unique_ptr &other) = delete;
- unique_ptr &operator=(const unique_ptr &other) = delete;
+ unique_ptr(const unique_ptr &) = delete;
+ unique_ptr &operator=(const unique_ptr &) = delete;
unique_ptr(unique_ptr &&other) noexcept : ptr_(other.release()) {
}
unique_ptr &operator=(unique_ptr &&other) noexcept {
diff --git a/td/tl/tl_jni_object.h b/td/tl/tl_jni_object.h
index 8e2dcd845..6d206d01f 100644
--- a/td/tl/tl_jni_object.h
+++ b/td/tl/tl_jni_object.h
@@ -55,12 +55,12 @@ class JvmThreadDetacher {
explicit JvmThreadDetacher(JavaVM *java_vm) : java_vm_(java_vm) {
}
- JvmThreadDetacher(const JvmThreadDetacher &other) = delete;
- JvmThreadDetacher &operator=(const JvmThreadDetacher &other) = delete;
+ JvmThreadDetacher(const JvmThreadDetacher &) = delete;
+ JvmThreadDetacher &operator=(const JvmThreadDetacher &) = delete;
JvmThreadDetacher(JvmThreadDetacher &&other) : java_vm_(other.java_vm_) {
other.java_vm_ = nullptr;
}
- JvmThreadDetacher &operator=(JvmThreadDetacher &&other) = delete;
+ JvmThreadDetacher &operator=(JvmThreadDetacher &&) = delete;
~JvmThreadDetacher() {
detach();
}
diff --git a/tdactor/td/actor/MultiPromise.h b/tdactor/td/actor/MultiPromise.h
index b68495df6..35636463b 100644
--- a/tdactor/td/actor/MultiPromise.h
+++ b/tdactor/td/actor/MultiPromise.h
@@ -107,10 +107,10 @@ class MultiPromiseActorSafe final : public MultiPromiseInterface {
size_t promise_count() const final;
explicit MultiPromiseActorSafe(string name) : multi_promise_(td::make_unique<MultiPromiseActor>(std::move(name))) {
}
- MultiPromiseActorSafe(const MultiPromiseActorSafe &other) = delete;
- MultiPromiseActorSafe &operator=(const MultiPromiseActorSafe &other) = delete;
- MultiPromiseActorSafe(MultiPromiseActorSafe &&other) = delete;
- MultiPromiseActorSafe &operator=(MultiPromiseActorSafe &&other) = delete;
+ MultiPromiseActorSafe(const MultiPromiseActorSafe &) = delete;
+ MultiPromiseActorSafe &operator=(const MultiPromiseActorSafe &) = delete;
+ MultiPromiseActorSafe(MultiPromiseActorSafe &&) = delete;
+ MultiPromiseActorSafe &operator=(MultiPromiseActorSafe &&) = delete;
~MultiPromiseActorSafe() final;
private:
diff --git a/tdactor/td/actor/PromiseFuture.h b/tdactor/td/actor/PromiseFuture.h
index 4e1fd1ef2..ff695f8d5 100644
--- a/tdactor/td/actor/PromiseFuture.h
+++ b/tdactor/td/actor/PromiseFuture.h
@@ -30,10 +30,10 @@ class EventPromise final : public PromiseInterface<Unit> {
do_set_error();
}
- EventPromise(const EventPromise &other) = delete;
- EventPromise &operator=(const EventPromise &other) = delete;
- EventPromise(EventPromise &&other) = delete;
- EventPromise &operator=(EventPromise &&other) = delete;
+ EventPromise(const EventPromise &) = delete;
+ EventPromise &operator=(const EventPromise &) = delete;
+ EventPromise(EventPromise &&) = delete;
+ EventPromise &operator=(EventPromise &&) = delete;
~EventPromise() final {
do_set_error();
}
@@ -95,8 +95,8 @@ class PromiseActor final : public PromiseInterface<T> {
public:
PromiseActor() = default;
- PromiseActor(const PromiseActor &other) = delete;
- PromiseActor &operator=(const PromiseActor &other) = delete;
+ PromiseActor(const PromiseActor &) = delete;
+ PromiseActor &operator=(const PromiseActor &) = delete;
PromiseActor(PromiseActor &&) = default;
PromiseActor &operator=(PromiseActor &&) = default;
~PromiseActor() final {
@@ -156,11 +156,11 @@ class FutureActor final : public Actor {
FutureActor() = default;
- FutureActor(const FutureActor &other) = delete;
- FutureActor &operator=(const FutureActor &other) = delete;
+ FutureActor(const FutureActor &) = delete;
+ FutureActor &operator=(const FutureActor &) = delete;
- FutureActor(FutureActor &&other) = default;
- FutureActor &operator=(FutureActor &&other) = default;
+ FutureActor(FutureActor &&) = default;
+ FutureActor &operator=(FutureActor &&) = default;
~FutureActor() final = default;
diff --git a/tdactor/td/actor/SignalSlot.h b/tdactor/td/actor/SignalSlot.h
index d2d51c9ab..a0a6b5fea 100644
--- a/tdactor/td/actor/SignalSlot.h
+++ b/tdactor/td/actor/SignalSlot.h
@@ -26,8 +26,8 @@ class Signal {
class Slot final : public Actor {
public:
Slot() = default;
- Slot(const Slot &other) = delete;
- Slot &operator=(const Slot &other) = delete;
+ Slot(const Slot &) = delete;
+ Slot &operator=(const Slot &) = delete;
Slot(Slot &&) = default;
Slot &operator=(Slot &&) = default;
~Slot() final {
diff --git a/tdactor/td/actor/impl/ActorId-decl.h b/tdactor/td/actor/impl/ActorId-decl.h
index 75f9744a3..57bdee377 100644
--- a/tdactor/td/actor/impl/ActorId-decl.h
+++ b/tdactor/td/actor/impl/ActorId-decl.h
@@ -23,8 +23,8 @@ class ActorId {
explicit ActorId(ObjectPool<ActorInfo>::WeakPtr ptr) : ptr_(ptr) {
}
ActorId() = default;
- ActorId(const ActorId &other) = default;
- ActorId &operator=(const ActorId &other) = default;
+ ActorId(const ActorId &) = default;
+ ActorId &operator=(const ActorId &) = default;
ActorId(ActorId &&other) noexcept : ptr_(other.ptr_) {
other.clear();
}
@@ -79,8 +79,8 @@ class ActorOwn {
ActorOwn &operator=(ActorOwn<OtherActorType> &&other);
ActorOwn(ActorOwn &&other) noexcept;
ActorOwn &operator=(ActorOwn &&other) noexcept;
- ActorOwn(const ActorOwn &other) = delete;
- ActorOwn &operator=(const ActorOwn &other) = delete;
+ ActorOwn(const ActorOwn &) = delete;
+ ActorOwn &operator=(const ActorOwn &) = delete;
~ActorOwn();
bool empty() const;
@@ -111,8 +111,8 @@ class ActorShared {
ActorShared &operator=(ActorShared<OtherActorType> &&other);
ActorShared(ActorShared &&other) noexcept;
ActorShared &operator=(ActorShared &&other) noexcept;
- ActorShared(const ActorShared &other) = delete;
- ActorShared &operator=(const ActorShared &other) = delete;
+ ActorShared(const ActorShared &) = delete;
+ ActorShared &operator=(const ActorShared &) = delete;
~ActorShared();
uint64 token() const;
diff --git a/tdactor/td/actor/impl/Event.h b/tdactor/td/actor/impl/Event.h
index 6f3d96053..6f8976884 100644
--- a/tdactor/td/actor/impl/Event.h
+++ b/tdactor/td/actor/impl/Event.h
@@ -155,7 +155,7 @@ class Event {
Event() : Event(Type::NoType) {
}
- Event(const Event &other) = delete;
+ Event(const Event &) = delete;
Event &operator=(const Event &) = delete;
Event(Event &&other) noexcept : type(other.type), link_token(other.link_token), data(other.data) {
other.type = Type::NoType;
diff --git a/tdactor/td/actor/impl/Scheduler-decl.h b/tdactor/td/actor/impl/Scheduler-decl.h
index 723764245..4422795c9 100644
--- a/tdactor/td/actor/impl/Scheduler-decl.h
+++ b/tdactor/td/actor/impl/Scheduler-decl.h
@@ -46,10 +46,10 @@ class SchedulerGuard {
public:
explicit SchedulerGuard(Scheduler *scheduler, bool lock = true);
~SchedulerGuard();
- SchedulerGuard(const SchedulerGuard &other) = delete;
- SchedulerGuard &operator=(const SchedulerGuard &other) = delete;
- SchedulerGuard(SchedulerGuard &&other) = default;
- SchedulerGuard &operator=(SchedulerGuard &&other) = delete;
+ SchedulerGuard(const SchedulerGuard &) = delete;
+ SchedulerGuard &operator=(const SchedulerGuard &) = delete;
+ SchedulerGuard(SchedulerGuard &&) = default;
+ SchedulerGuard &operator=(SchedulerGuard &&) = delete;
private:
MovableValue<bool> is_valid_ = true;
diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h
index b1d3fbfa4..8c2b6d6e2 100644
--- a/tdactor/td/actor/impl/Scheduler.h
+++ b/tdactor/td/actor/impl/Scheduler.h
@@ -34,10 +34,10 @@ class EventGuard {
return event_context_.flags == 0;
}
- EventGuard(const EventGuard &other) = delete;
- EventGuard &operator=(const EventGuard &other) = delete;
- EventGuard(EventGuard &&other) = delete;
- EventGuard &operator=(EventGuard &&other) = delete;
+ EventGuard(const EventGuard &) = delete;
+ EventGuard &operator=(const EventGuard &) = delete;
+ EventGuard(EventGuard &&) = delete;
+ EventGuard &operator=(EventGuard &&) = delete;
~EventGuard();
private:
diff --git a/tddb/td/db/SqliteStatement.h b/tddb/td/db/SqliteStatement.h
index 1bcf82eff..4475e51a8 100644
--- a/tddb/td/db/SqliteStatement.h
+++ b/tddb/td/db/SqliteStatement.h
@@ -26,10 +26,10 @@ extern int VERBOSITY_NAME(sqlite);
class SqliteStatement {
public:
SqliteStatement() = default;
- SqliteStatement(const SqliteStatement &other) = delete;
- SqliteStatement &operator=(const SqliteStatement &other) = delete;
- SqliteStatement(SqliteStatement &&other) = default;
- SqliteStatement &operator=(SqliteStatement &&other) = default;
+ SqliteStatement(const SqliteStatement &) = delete;
+ SqliteStatement &operator=(const SqliteStatement &) = delete;
+ SqliteStatement(SqliteStatement &&) = default;
+ SqliteStatement &operator=(SqliteStatement &&) = default;
~SqliteStatement();
Status bind_blob(int id, Slice blob) TD_WARN_UNUSED_RESULT;
diff --git a/tddb/td/db/binlog/Binlog.h b/tddb/td/db/binlog/Binlog.h
index 055c84e18..4b13b8a94 100644
--- a/tddb/td/db/binlog/Binlog.h
+++ b/tddb/td/db/binlog/Binlog.h
@@ -47,10 +47,10 @@ class Binlog {
public:
enum class Error : int { WrongPassword = -1037284 };
Binlog();
- Binlog(const Binlog &other) = delete;
- Binlog &operator=(const Binlog &other) = delete;
- Binlog(Binlog &&other) = delete;
- Binlog &operator=(Binlog &&other) = delete;
+ Binlog(const Binlog &) = delete;
+ Binlog &operator=(const Binlog &) = delete;
+ Binlog(Binlog &&) = delete;
+ Binlog &operator=(Binlog &&) = delete;
~Binlog();
using Callback = std::function<void(const BinlogEvent &)>;
diff --git a/tddb/td/db/binlog/ConcurrentBinlog.h b/tddb/td/db/binlog/ConcurrentBinlog.h
index cdac7d0dd..f850e2ad4 100644
--- a/tddb/td/db/binlog/ConcurrentBinlog.h
+++ b/tddb/td/db/binlog/ConcurrentBinlog.h
@@ -35,10 +35,10 @@ class ConcurrentBinlog final : public BinlogInterface {
ConcurrentBinlog();
explicit ConcurrentBinlog(unique_ptr<Binlog> binlog, int scheduler_id = -1);
- ConcurrentBinlog(const ConcurrentBinlog &other) = delete;
- ConcurrentBinlog &operator=(const ConcurrentBinlog &other) = delete;
- ConcurrentBinlog(ConcurrentBinlog &&other) = delete;
- ConcurrentBinlog &operator=(ConcurrentBinlog &&other) = delete;
+ ConcurrentBinlog(const ConcurrentBinlog &) = delete;
+ ConcurrentBinlog &operator=(const ConcurrentBinlog &) = delete;
+ ConcurrentBinlog(ConcurrentBinlog &&) = delete;
+ ConcurrentBinlog &operator=(ConcurrentBinlog &&) = delete;
~ConcurrentBinlog() final;
void force_sync(Promise<> promise) final;
diff --git a/tdnet/td/net/HttpReader.h b/tdnet/td/net/HttpReader.h
index 8d2dc8408..4c360435d 100644
--- a/tdnet/td/net/HttpReader.h
+++ b/tdnet/td/net/HttpReader.h
@@ -30,10 +30,10 @@ class HttpReader {
Result<size_t> read_next(HttpQuery *query, bool can_be_slow = true) TD_WARN_UNUSED_RESULT; // TODO move query to init
HttpReader() = default;
- HttpReader(const HttpReader &other) = delete;
- HttpReader &operator=(const HttpReader &other) = delete;
- HttpReader(HttpReader &&other) = delete;
- HttpReader &operator=(HttpReader &&other) = delete;
+ HttpReader(const HttpReader &) = delete;
+ HttpReader &operator=(const HttpReader &) = delete;
+ HttpReader(HttpReader &&) = delete;
+ HttpReader &operator=(HttpReader &&) = delete;
~HttpReader() {
if (!temp_file_.empty()) {
clean_temporary_file();
diff --git a/tdutils/td/utils/BigNum.cpp b/tdutils/td/utils/BigNum.cpp
index f3c9e3dce..b48d24606 100644
--- a/tdutils/td/utils/BigNum.cpp
+++ b/tdutils/td/utils/BigNum.cpp
@@ -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) {
diff --git a/tdutils/td/utils/BigNum.h b/tdutils/td/utils/BigNum.h
index ebd886490..98bba93c1 100644
--- a/tdutils/td/utils/BigNum.h
+++ b/tdutils/td/utils/BigNum.h
@@ -19,8 +19,8 @@ namespace td {
class BigNumContext {
public:
BigNumContext();
- BigNumContext(const BigNumContext &other) = delete;
- BigNumContext &operator=(const BigNumContext &other) = delete;
+ BigNumContext(const BigNumContext &) = delete;
+ BigNumContext &operator=(const BigNumContext &) = delete;
BigNumContext(BigNumContext &&other) noexcept;
BigNumContext &operator=(BigNumContext &&other) noexcept;
~BigNumContext();
diff --git a/tdutils/td/utils/CancellationToken.h b/tdutils/td/utils/CancellationToken.h
index e361d5b83..30a6a4f02 100644
--- a/tdutils/td/utils/CancellationToken.h
+++ b/tdutils/td/utils/CancellationToken.h
@@ -44,8 +44,8 @@ class CancellationTokenSource {
token_ = std::move(other.token_);
return *this;
}
- CancellationTokenSource(const CancellationTokenSource &other) = delete;
- CancellationTokenSource &operator=(const CancellationTokenSource &other) = delete;
+ CancellationTokenSource(const CancellationTokenSource &) = delete;
+ CancellationTokenSource &operator=(const CancellationTokenSource &) = delete;
~CancellationTokenSource() {
cancel();
}
diff --git a/tdutils/td/utils/Destructor.h b/tdutils/td/utils/Destructor.h
index 26f6a123c..51edca634 100644
--- a/tdutils/td/utils/Destructor.h
+++ b/tdutils/td/utils/Destructor.h
@@ -16,10 +16,10 @@ namespace td {
class Destructor {
public:
Destructor() = default;
- Destructor(const Destructor &other) = delete;
- Destructor &operator=(const Destructor &other) = delete;
- Destructor(Destructor &&other) = default;
- Destructor &operator=(Destructor &&other) = default;
+ Destructor(const Destructor &) = delete;
+ Destructor &operator=(const Destructor &) = delete;
+ Destructor(Destructor &&) = default;
+ Destructor &operator=(Destructor &&) = default;
virtual ~Destructor() = default;
};
@@ -28,10 +28,10 @@ class LambdaDestructor final : public Destructor {
public:
explicit LambdaDestructor(F &&f) : f_(std::move(f)) {
}
- LambdaDestructor(const LambdaDestructor &other) = delete;
- LambdaDestructor &operator=(const LambdaDestructor &other) = delete;
- LambdaDestructor(LambdaDestructor &&other) = default;
- LambdaDestructor &operator=(LambdaDestructor &&other) = default;
+ LambdaDestructor(const LambdaDestructor &) = delete;
+ LambdaDestructor &operator=(const LambdaDestructor &) = delete;
+ LambdaDestructor(LambdaDestructor &&) = default;
+ LambdaDestructor &operator=(LambdaDestructor &&) = default;
~LambdaDestructor() final {
f_();
}
diff --git a/tdutils/td/utils/EpochBasedMemoryReclamation.h b/tdutils/td/utils/EpochBasedMemoryReclamation.h
index efdf3b04b..757c56242 100644
--- a/tdutils/td/utils/EpochBasedMemoryReclamation.h
+++ b/tdutils/td/utils/EpochBasedMemoryReclamation.h
@@ -18,20 +18,20 @@ namespace td {
template <class T>
class EpochBasedMemoryReclamation {
public:
- EpochBasedMemoryReclamation(const EpochBasedMemoryReclamation &other) = delete;
- EpochBasedMemoryReclamation &operator=(const EpochBasedMemoryReclamation &other) = delete;
- EpochBasedMemoryReclamation(EpochBasedMemoryReclamation &&other) = delete;
- EpochBasedMemoryReclamation &operator=(EpochBasedMemoryReclamation &&other) = delete;
+ EpochBasedMemoryReclamation(const EpochBasedMemoryReclamation &) = delete;
+ EpochBasedMemoryReclamation &operator=(const EpochBasedMemoryReclamation &) = delete;
+ EpochBasedMemoryReclamation(EpochBasedMemoryReclamation &&) = delete;
+ EpochBasedMemoryReclamation &operator=(EpochBasedMemoryReclamation &&) = delete;
~EpochBasedMemoryReclamation() = default;
class Locker {
public:
Locker(size_t thread_id, EpochBasedMemoryReclamation *ebmr) : thread_id_(thread_id), ebmr_(ebmr) {
}
- Locker(const Locker &other) = delete;
- Locker &operator=(const Locker &other) = delete;
- Locker(Locker &&other) = default;
- Locker &operator=(Locker &&other) = delete;
+ Locker(const Locker &) = delete;
+ Locker &operator=(const Locker &) = delete;
+ Locker(Locker &&) = default;
+ Locker &operator=(Locker &&) = delete;
~Locker() {
if (ebmr_) {
diff --git a/tdutils/td/utils/FlatHashTable.h b/tdutils/td/utils/FlatHashTable.h
index d2a7d84c1..4bc852fd0 100644
--- a/tdutils/td/utils/FlatHashTable.h
+++ b/tdutils/td/utils/FlatHashTable.h
@@ -198,8 +198,8 @@ class FlatHashTable {
};
FlatHashTable() = default;
- FlatHashTable(const FlatHashTable &other) = delete;
- FlatHashTable &operator=(const FlatHashTable &other) = delete;
+ FlatHashTable(const FlatHashTable &) = delete;
+ FlatHashTable &operator=(const FlatHashTable &) = delete;
FlatHashTable(std::initializer_list<NodeT> nodes) {
if (nodes.size() == 0) {
diff --git a/tdutils/td/utils/Gzip.cpp b/tdutils/td/utils/Gzip.cpp
index 0610ff636..b66020899 100644
--- a/tdutils/td/utils/Gzip.cpp
+++ b/tdutils/td/utils/Gzip.cpp
@@ -25,10 +25,10 @@ class Gzip::Impl {
// z_stream is not copyable nor movable
Impl() = default;
- 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() = default;
};
diff --git a/tdutils/td/utils/HazardPointers.h b/tdutils/td/utils/HazardPointers.h
index 74b3633b8..b17906cb0 100644
--- a/tdutils/td/utils/HazardPointers.h
+++ b/tdutils/td/utils/HazardPointers.h
@@ -29,10 +29,10 @@ class HazardPointers {
}
}
}
- HazardPointers(const HazardPointers &other) = delete;
- HazardPointers &operator=(const HazardPointers &other) = delete;
- HazardPointers(HazardPointers &&other) = delete;
- HazardPointers &operator=(HazardPointers &&other) = delete;
+ HazardPointers(const HazardPointers &) = delete;
+ HazardPointers &operator=(const HazardPointers &) = delete;
+ HazardPointers(HazardPointers &&) = delete;
+ HazardPointers &operator=(HazardPointers &&) = delete;
class Holder {
public:
@@ -44,10 +44,10 @@ class HazardPointers {
CHECK(hazard_ptr_.load() == 0);
hazard_ptr_.store(reinterpret_cast<T *>(1));
}
- Holder(const Holder &other) = delete;
- Holder &operator=(const Holder &other) = delete;
- Holder(Holder &&other) = delete;
- Holder &operator=(Holder &&other) = delete;
+ Holder(const Holder &) = delete;
+ Holder &operator=(const Holder &) = delete;
+ Holder(Holder &&) = delete;
+ Holder &operator=(Holder &&) = delete;
~Holder() {
clear();
}
diff --git a/tdutils/td/utils/JsonBuilder.h b/tdutils/td/utils/JsonBuilder.h
index 5da98b2bc..ea88689d3 100644
--- a/tdutils/td/utils/JsonBuilder.h
+++ b/tdutils/td/utils/JsonBuilder.h
@@ -222,7 +222,7 @@ class JsonScope {
jb_->scope_ = this;
CHECK(is_active());
}
- JsonScope(const JsonScope &other) = delete;
+ JsonScope(const JsonScope &) = delete;
JsonScope(JsonScope &&other) noexcept : sb_(other.sb_), jb_(other.jb_), save_scope_(other.save_scope_) {
other.jb_ = nullptr;
}
@@ -342,7 +342,7 @@ class JsonArrayScope final : public JsonScope {
jb->inc_offset();
*sb_ << "[";
}
- JsonArrayScope(JsonArrayScope &&other) = default;
+ JsonArrayScope(JsonArrayScope &&) = default;
~JsonArrayScope() {
if (jb_) {
leave();
@@ -383,7 +383,7 @@ class JsonObjectScope final : public JsonScope {
jb->inc_offset();
*sb_ << "{";
}
- JsonObjectScope(JsonObjectScope &&other) = default;
+ JsonObjectScope(JsonObjectScope &&) = default;
~JsonObjectScope() {
if (jb_) {
leave();
@@ -470,8 +470,8 @@ class JsonValue final : private Jsonable {
init(std::move(other));
return *this;
}
- JsonValue(const JsonValue &other) = delete;
- JsonValue &operator=(const JsonValue &other) = delete;
+ JsonValue(const JsonValue &) = delete;
+ JsonValue &operator=(const JsonValue &) = delete;
Type type() const {
return type_;
diff --git a/tdutils/td/utils/MapNode.h b/tdutils/td/utils/MapNode.h
index 3fe99f0af..65fdd9956 100644
--- a/tdutils/td/utils/MapNode.h
+++ b/tdutils/td/utils/MapNode.h
@@ -45,8 +45,8 @@ struct MapNode {
new (&second) ValueT(std::move(value));
DCHECK(!empty());
}
- MapNode(const MapNode &other) = delete;
- MapNode &operator=(const MapNode &other) = delete;
+ MapNode(const MapNode &) = delete;
+ MapNode &operator=(const MapNode &) = delete;
MapNode(MapNode &&other) noexcept {
*this = std::move(other);
}
@@ -107,10 +107,10 @@ struct MapNode<KeyT, ValueT, typename std::enable_if_t<(sizeof(KeyT) + sizeof(Va
new (&second) ValueT(std::forward<ArgsT>(args)...);
DCHECK(!is_hash_table_key_empty(first));
}
- Impl(const Impl &other) = delete;
- Impl &operator=(const Impl &other) = delete;
- Impl(Impl &&other) = delete;
- void operator=(Impl &&other) = delete;
+ Impl(const Impl &) = delete;
+ Impl &operator=(const Impl &) = delete;
+ Impl(Impl &&) = delete;
+ void operator=(Impl &&) = delete;
~Impl() {
second.~ValueT();
}
diff --git a/tdutils/td/utils/MpmcQueue.h b/tdutils/td/utils/MpmcQueue.h
index 371866cae..a6d1bef7f 100644
--- a/tdutils/td/utils/MpmcQueue.h
+++ b/tdutils/td/utils/MpmcQueue.h
@@ -217,10 +217,10 @@ class MpmcQueueOld {
node.release();
}
- MpmcQueueOld(const MpmcQueueOld &other) = delete;
- MpmcQueueOld &operator=(const MpmcQueueOld &other) = delete;
- MpmcQueueOld(MpmcQueueOld &&other) = delete;
- MpmcQueueOld &operator=(MpmcQueueOld &&other) = delete;
+ MpmcQueueOld(const MpmcQueueOld &) = delete;
+ MpmcQueueOld &operator=(const MpmcQueueOld &) = delete;
+ MpmcQueueOld(MpmcQueueOld &&) = delete;
+ MpmcQueueOld &operator=(MpmcQueueOld &&) = delete;
~MpmcQueueOld() {
auto *ptr = read_pos_.load(std::memory_order_relaxed);
while (ptr) {
@@ -342,10 +342,10 @@ class MpmcQueue {
node.release();
}
- MpmcQueue(const MpmcQueue &other) = delete;
- MpmcQueue &operator=(const MpmcQueue &other) = delete;
- MpmcQueue(MpmcQueue &&other) = delete;
- MpmcQueue &operator=(MpmcQueue &&other) = delete;
+ MpmcQueue(const MpmcQueue &) = delete;
+ MpmcQueue &operator=(const MpmcQueue &) = delete;
+ MpmcQueue(MpmcQueue &&) = delete;
+ MpmcQueue &operator=(MpmcQueue &&) = delete;
~MpmcQueue() {
auto *ptr = read_pos_.load(std::memory_order_relaxed);
while (ptr) {
diff --git a/tdutils/td/utils/ObjectPool.h b/tdutils/td/utils/ObjectPool.h
index 791c3dcbb..8f6f4c28e 100644
--- a/tdutils/td/utils/ObjectPool.h
+++ b/tdutils/td/utils/ObjectPool.h
@@ -179,8 +179,8 @@ class ObjectPool {
ObjectPool() = default;
ObjectPool(const ObjectPool &) = delete;
ObjectPool &operator=(const ObjectPool &) = delete;
- ObjectPool(ObjectPool &&other) = delete;
- ObjectPool &operator=(ObjectPool &&other) = delete;
+ ObjectPool(ObjectPool &&) = delete;
+ ObjectPool &operator=(ObjectPool &&) = delete;
~ObjectPool() {
while (head_.load()) {
auto to_delete = head_.load();
diff --git a/tdutils/td/utils/Promise.h b/tdutils/td/utils/Promise.h
index 699685fae..247593742 100644
--- a/tdutils/td/utils/Promise.h
+++ b/tdutils/td/utils/Promise.h
@@ -105,10 +105,10 @@ class LambdaPromise : public PromiseInterface<ValueT> {
state_ = State::Complete;
}
}
- LambdaPromise(const LambdaPromise &other) = delete;
- LambdaPromise &operator=(const LambdaPromise &other) = delete;
- LambdaPromise(LambdaPromise &&other) = default;
- LambdaPromise &operator=(LambdaPromise &&other) = default;
+ LambdaPromise(const LambdaPromise &) = delete;
+ LambdaPromise &operator=(const LambdaPromise &) = delete;
+ LambdaPromise(LambdaPromise &&) = default;
+ LambdaPromise &operator=(LambdaPromise &&) = default;
~LambdaPromise() override {
if (state_.get() == State::Ready) {
do_error(Status::Error("Lost promise"));
@@ -258,10 +258,10 @@ class SafePromise {
public:
SafePromise(Promise<T> promise, Result<T> result) : promise_(std::move(promise)), result_(std::move(result)) {
}
- SafePromise(const SafePromise &other) = delete;
- SafePromise &operator=(const SafePromise &other) = delete;
- SafePromise(SafePromise &&other) = default;
- SafePromise &operator=(SafePromise &&other) = default;
+ SafePromise(const SafePromise &) = delete;
+ SafePromise &operator=(const SafePromise &) = delete;
+ SafePromise(SafePromise &&) = default;
+ SafePromise &operator=(SafePromise &&) = default;
~SafePromise() {
if (promise_) {
promise_.set_result(std::move(result_));
diff --git a/tdutils/td/utils/ScopeGuard.h b/tdutils/td/utils/ScopeGuard.h
index 4c2c2d22e..409912b44 100644
--- a/tdutils/td/utils/ScopeGuard.h
+++ b/tdutils/td/utils/ScopeGuard.h
@@ -18,10 +18,10 @@ namespace td {
class Guard {
public:
Guard() = default;
- Guard(const Guard &other) = delete;
- Guard &operator=(const Guard &other) = delete;
- Guard(Guard &&other) = default;
- Guard &operator=(Guard &&other) = default;
+ Guard(const Guard &) = delete;
+ Guard &operator=(const Guard &) = delete;
+ Guard(Guard &&) = default;
+ Guard &operator=(Guard &&) = default;
virtual ~Guard() = default;
virtual void dismiss() {
std::abort();
@@ -35,12 +35,12 @@ class LambdaGuard final : public Guard {
}
explicit LambdaGuard(FunctionT &&func) : func_(std::move(func)) {
}
- LambdaGuard(const LambdaGuard &other) = delete;
- LambdaGuard &operator=(const LambdaGuard &other) = delete;
+ LambdaGuard(const LambdaGuard &) = delete;
+ LambdaGuard &operator=(const LambdaGuard &) = delete;
LambdaGuard(LambdaGuard &&other) : func_(std::move(other.func_)), dismissed_(other.dismissed_) {
other.dismissed_ = true;
}
- LambdaGuard &operator=(LambdaGuard &&other) = delete;
+ LambdaGuard &operator=(LambdaGuard &&) = delete;
void dismiss() final {
dismissed_ = true;
diff --git a/tdutils/td/utils/SetNode.h b/tdutils/td/utils/SetNode.h
index bfbd9981d..2f29b48bb 100644
--- a/tdutils/td/utils/SetNode.h
+++ b/tdutils/td/utils/SetNode.h
@@ -34,8 +34,8 @@ struct SetNode {
}
explicit SetNode(KeyT key) : first(std::move(key)) {
}
- SetNode(const SetNode &other) = delete;
- SetNode &operator=(const SetNode &other) = delete;
+ SetNode(const SetNode &) = delete;
+ SetNode &operator=(const SetNode &) = delete;
SetNode(SetNode &&other) noexcept {
*this = std::move(other);
}
@@ -78,10 +78,10 @@ struct SetNode<KeyT, typename std::enable_if_t<(sizeof(KeyT) > 28 * sizeof(void
explicit Impl(InputKeyT &&key) : first(std::forward<InputKeyT>(key)) {
DCHECK(!is_hash_table_key_empty(first));
}
- Impl(const Impl &other) = delete;
- Impl &operator=(const Impl &other) = delete;
- Impl(Impl &&other) = delete;
- void operator=(Impl &&other) = delete;
+ Impl(const Impl &) = delete;
+ Impl &operator=(const Impl &) = delete;
+ Impl(Impl &&) = delete;
+ void operator=(Impl &&) = delete;
};
using public_key_type = KeyT;
diff --git a/tdutils/td/utils/SharedObjectPool.h b/tdutils/td/utils/SharedObjectPool.h
index 3a58c748c..11994742f 100644
--- a/tdutils/td/utils/SharedObjectPool.h
+++ b/tdutils/td/utils/SharedObjectPool.h
@@ -187,10 +187,10 @@ class SharedObjectPool {
using Ptr = detail::SharedPtr<DataT, Deleter>;
SharedObjectPool() = default;
- SharedObjectPool(const SharedObjectPool &other) = delete;
- SharedObjectPool &operator=(const SharedObjectPool &other) = delete;
- SharedObjectPool(SharedObjectPool &&other) = delete;
- SharedObjectPool &operator=(SharedObjectPool &&other) = delete;
+ SharedObjectPool(const SharedObjectPool &) = delete;
+ SharedObjectPool &operator=(const SharedObjectPool &) = delete;
+ SharedObjectPool(SharedObjectPool &&) = delete;
+ SharedObjectPool &operator=(SharedObjectPool &&) = delete;
~SharedObjectPool() {
free_queue_.pop_all(free_queue_reader_);
size_t free_cnt = 0;
diff --git a/tdutils/td/utils/StackAllocator.h b/tdutils/td/utils/StackAllocator.h
index f3dfc1d31..28f09c061 100644
--- a/tdutils/td/utils/StackAllocator.h
+++ b/tdutils/td/utils/StackAllocator.h
@@ -32,13 +32,13 @@ class StackAllocator {
public:
Ptr(AllocatorImpl *allocator, size_t size) : allocator_(allocator), slice_(allocator_->allocate(size)) {
}
- Ptr(const Ptr &other) = delete;
- Ptr &operator=(const Ptr &other) = delete;
+ Ptr(const Ptr &) = delete;
+ Ptr &operator=(const Ptr &) = delete;
Ptr(Ptr &&other) noexcept : allocator_(other.allocator_), slice_(other.slice_) {
other.allocator_ = nullptr;
other.slice_ = MutableSlice();
}
- Ptr &operator=(Ptr &&other) = delete;
+ Ptr &operator=(Ptr &&) = delete;
~Ptr();
MutableSlice as_slice() const {
diff --git a/tdutils/td/utils/TlStorerToString.h b/tdutils/td/utils/TlStorerToString.h
index 69c2a7f88..7b4873132 100644
--- a/tdutils/td/utils/TlStorerToString.h
+++ b/tdutils/td/utils/TlStorerToString.h
@@ -49,8 +49,8 @@ class TlStorerToString {
public:
TlStorerToString() = default;
- TlStorerToString(const TlStorerToString &other) = delete;
- TlStorerToString &operator=(const TlStorerToString &other) = delete;
+ TlStorerToString(const TlStorerToString &) = delete;
+ TlStorerToString &operator=(const TlStorerToString &) = delete;
void store_field(const char *name, bool value) {
store_field_begin(name);
diff --git a/tdutils/td/utils/buffer.h b/tdutils/td/utils/buffer.h
index b34296a1b..c9368f8cd 100644
--- a/tdutils/td/utils/buffer.h
+++ b/tdutils/td/utils/buffer.h
@@ -117,8 +117,8 @@ class BufferSlice {
: buffer_(std::move(buffer_ptr)), begin_(begin), end_(end) {
debug_track();
}
- BufferSlice(const BufferSlice &other) = delete;
- BufferSlice &operator=(const BufferSlice &other) = delete;
+ BufferSlice(const BufferSlice &) = delete;
+ BufferSlice &operator=(const BufferSlice &) = delete;
BufferSlice(BufferSlice &&other) noexcept : BufferSlice(std::move(other.buffer_), other.begin_, other.end_) {
debug_untrack(); // yes, debug_untrack
}
diff --git a/tdutils/td/utils/crypto.h b/tdutils/td/utils/crypto.h
index c97047027..411f6fb15 100644
--- a/tdutils/td/utils/crypto.h
+++ b/tdutils/td/utils/crypto.h
@@ -131,8 +131,8 @@ string sha512(Slice data) TD_WARN_UNUSED_RESULT;
class Sha256State {
public:
Sha256State();
- Sha256State(const Sha256State &other) = delete;
- Sha256State &operator=(const Sha256State &other) = delete;
+ Sha256State(const Sha256State &) = delete;
+ Sha256State &operator=(const Sha256State &) = delete;
Sha256State(Sha256State &&other) noexcept;
Sha256State &operator=(Sha256State &&other) noexcept;
~Sha256State();
diff --git a/tdutils/td/utils/optional.h b/tdutils/td/utils/optional.h
index 3897ff076..ace463d70 100644
--- a/tdutils/td/utils/optional.h
+++ b/tdutils/td/utils/optional.h
@@ -42,8 +42,8 @@ class optional {
return *this;
}
- optional(optional &&other) = default;
- optional &operator=(optional &&other) = default;
+ optional(optional &&) = default;
+ optional &operator=(optional &&) = default;
~optional() = default;
explicit operator bool() const noexcept {
@@ -89,8 +89,8 @@ struct optional<T, false> : optional<T, true> {
using optional<T, true>::optional;
- optional(const optional &other) = delete;
- optional &operator=(const optional &other) = delete;
+ optional(const optional &) = delete;
+ optional &operator=(const optional &) = delete;
optional(optional &&) = default;
optional &operator=(optional &&) = default;
~optional() = default;
diff --git a/tdutils/td/utils/port/MemoryMapping.cpp b/tdutils/td/utils/port/MemoryMapping.cpp
index bdf7a77f6..b18b4dadf 100644
--- a/tdutils/td/utils/port/MemoryMapping.cpp
+++ b/tdutils/td/utils/port/MemoryMapping.cpp
@@ -91,8 +91,8 @@ Result<MemoryMapping> MemoryMapping::create_from_file(const FileFd &file_fd, con
#endif
}
-MemoryMapping::MemoryMapping(MemoryMapping &&other) noexcept = default;
-MemoryMapping &MemoryMapping::operator=(MemoryMapping &&other) noexcept = default;
+MemoryMapping::MemoryMapping(MemoryMapping &&) noexcept = default;
+MemoryMapping &MemoryMapping::operator=(MemoryMapping &&) noexcept = default;
MemoryMapping::~MemoryMapping() = default;
MemoryMapping::MemoryMapping(unique_ptr<Impl> impl) : impl_(std::move(impl)) {
diff --git a/tdutils/td/utils/port/MemoryMapping.h b/tdutils/td/utils/port/MemoryMapping.h
index cfde32dae..525198d3e 100644
--- a/tdutils/td/utils/port/MemoryMapping.h
+++ b/tdutils/td/utils/port/MemoryMapping.h
@@ -37,8 +37,8 @@ class MemoryMapping {
Slice as_slice() const;
MutableSlice as_mutable_slice(); // returns empty slice if memory is read-only
- MemoryMapping(const MemoryMapping &other) = delete;
- const MemoryMapping &operator=(const MemoryMapping &other) = delete;
+ MemoryMapping(const MemoryMapping &) = delete;
+ const MemoryMapping &operator=(const MemoryMapping &) = delete;
MemoryMapping(MemoryMapping &&other) noexcept;
MemoryMapping &operator=(MemoryMapping &&other) noexcept;
~MemoryMapping();
diff --git a/tdutils/td/utils/port/detail/ThreadPthread.h b/tdutils/td/utils/port/detail/ThreadPthread.h
index ffa4c3e8d..c86935b3e 100644
--- a/tdutils/td/utils/port/detail/ThreadPthread.h
+++ b/tdutils/td/utils/port/detail/ThreadPthread.h
@@ -38,8 +38,8 @@ namespace detail {
class ThreadPthread {
public:
ThreadPthread() = default;
- ThreadPthread(const ThreadPthread &other) = delete;
- ThreadPthread &operator=(const ThreadPthread &other) = delete;
+ ThreadPthread(const ThreadPthread &) = delete;
+ ThreadPthread &operator=(const ThreadPthread &) = delete;
ThreadPthread(ThreadPthread &&other) noexcept : is_inited_(std::move(other.is_inited_)), thread_(other.thread_) {
}
ThreadPthread &operator=(ThreadPthread &&other) noexcept {
diff --git a/tdutils/td/utils/port/detail/ThreadStl.h b/tdutils/td/utils/port/detail/ThreadStl.h
index a1c34b5f5..6ef1d87b2 100644
--- a/tdutils/td/utils/port/detail/ThreadStl.h
+++ b/tdutils/td/utils/port/detail/ThreadStl.h
@@ -35,8 +35,8 @@ namespace detail {
class ThreadStl {
public:
ThreadStl() = default;
- ThreadStl(const ThreadStl &other) = delete;
- ThreadStl &operator=(const ThreadStl &other) = delete;
+ ThreadStl(const ThreadStl &) = delete;
+ ThreadStl &operator=(const ThreadStl &) = delete;
ThreadStl(ThreadStl &&) = default;
ThreadStl &operator=(ThreadStl &&) = default;
~ThreadStl() {
diff --git a/tdutils/td/utils/tl_parsers.h b/tdutils/td/utils/tl_parsers.h
index 6f2e941e2..b5d85cc74 100644
--- a/tdutils/td/utils/tl_parsers.h
+++ b/tdutils/td/utils/tl_parsers.h
@@ -40,8 +40,8 @@ class TlParser {
public:
explicit TlParser(Slice slice);
- TlParser(const TlParser &other) = delete;
- TlParser &operator=(const TlParser &other) = delete;
+ TlParser(const TlParser &) = delete;
+ TlParser &operator=(const TlParser &) = delete;
void set_error(const string &error_message);
diff --git a/tdutils/td/utils/tl_storers.h b/tdutils/td/utils/tl_storers.h
index d9673a931..9d37ac71e 100644
--- a/tdutils/td/utils/tl_storers.h
+++ b/tdutils/td/utils/tl_storers.h
@@ -22,8 +22,8 @@ class TlStorerUnsafe {
explicit TlStorerUnsafe(unsigned char *buf) : buf_(buf) {
}
- TlStorerUnsafe(const TlStorerUnsafe &other) = delete;
- TlStorerUnsafe &operator=(const TlStorerUnsafe &other) = delete;
+ TlStorerUnsafe(const TlStorerUnsafe &) = delete;
+ TlStorerUnsafe &operator=(const TlStorerUnsafe &) = delete;
template <class T>
void store_binary(const T &x) {
@@ -97,8 +97,8 @@ class TlStorerCalcLength {
public:
TlStorerCalcLength() = default;
- TlStorerCalcLength(const TlStorerCalcLength &other) = delete;
- TlStorerCalcLength &operator=(const TlStorerCalcLength &other) = delete;
+ TlStorerCalcLength(const TlStorerCalcLength &) = delete;
+ TlStorerCalcLength &operator=(const TlStorerCalcLength &) = delete;
template <class T>
void store_binary(const T &x) {
diff --git a/tdutils/td/utils/unique_ptr.h b/tdutils/td/utils/unique_ptr.h
index 7f8ec3959..033a47df8 100644
--- a/tdutils/td/utils/unique_ptr.h
+++ b/tdutils/td/utils/unique_ptr.h
@@ -21,8 +21,8 @@ class unique_ptr final {
using element_type = T;
unique_ptr() noexcept = default;
- unique_ptr(const unique_ptr &other) = delete;
- unique_ptr &operator=(const unique_ptr &other) = delete;
+ unique_ptr(const unique_ptr &) = delete;
+ unique_ptr &operator=(const unique_ptr &) = delete;
unique_ptr(unique_ptr &&other) noexcept : ptr_(other.release()) {
}
unique_ptr &operator=(unique_ptr &&other) noexcept {
diff --git a/tdutils/td/utils/unique_value_ptr.h b/tdutils/td/utils/unique_value_ptr.h
index 1b8abf732..d96a85637 100644
--- a/tdutils/td/utils/unique_value_ptr.h
+++ b/tdutils/td/utils/unique_value_ptr.h
@@ -31,8 +31,8 @@ class unique_value_ptr final {
}
return *this;
}
- unique_value_ptr(unique_value_ptr &&other) noexcept = default;
- unique_value_ptr &operator=(unique_value_ptr &&other) = default;
+ unique_value_ptr(unique_value_ptr &&) noexcept = default;
+ unique_value_ptr &operator=(unique_value_ptr &&) = default;
unique_value_ptr(std::nullptr_t) noexcept {
}
unique_value_ptr(unique_ptr<T> &&ptr) noexcept : ptr_(std::move(ptr)) {
diff --git a/tdutils/test/ConcurrentHashMap.cpp b/tdutils/test/ConcurrentHashMap.cpp
index d47e0ba3b..5ab1f85ad 100644
--- a/tdutils/test/ConcurrentHashMap.cpp
+++ b/tdutils/test/ConcurrentHashMap.cpp
@@ -163,7 +163,7 @@ class ConcurrentHashMapJunction {
ConcurrentHashMapJunction(const ConcurrentHashMapJunction &) = delete;
ConcurrentHashMapJunction &operator=(const ConcurrentHashMapJunction &) = delete;
- ConcurrentHashMapJunction(ConcurrentHashMapJunction &&other) = delete;
+ ConcurrentHashMapJunction(ConcurrentHashMapJunction &&) = delete;
ConcurrentHashMapJunction &operator=(ConcurrentHashMapJunction &&) = delete;
~ConcurrentHashMapJunction() {
junction::DefaultQSBR.flush();