aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor
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 /tdactor
parentc2795ca9046e8de5197262743c4162c027cee724 (diff)
Use empty name for unused move constructor/assignment parameter.
Diffstat (limited to 'tdactor')
-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
7 files changed, 31 insertions, 31 deletions
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: