Skip to content

Commit

Permalink
thread-list: fix not properly deleting move constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and BareosBot committed Feb 5, 2024
1 parent 4a327e6 commit 989b873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/lib/thread_list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2019-2022 Bareos GmbH & Co. KG
Copyright (C) 2019-2024 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -46,10 +46,10 @@ class ThreadList {
bool ShutdownAndWaitForThreadsToFinish();
std::size_t Size() const;

ThreadList(const ThreadList& ohter) = delete;
ThreadList(const ThreadList&& ohter) = delete;
ThreadList(const ThreadList& other) = delete;
ThreadList(ThreadList&& other) = delete;
ThreadList& operator=(const ThreadList& rhs) = delete;
ThreadList& operator=(const ThreadList&& rhs) = delete;
ThreadList& operator=(ThreadList&& rhs) = delete;

private:
std::unique_ptr<ThreadListPrivate> impl_;
Expand Down

0 comments on commit 989b873

Please sign in to comment.