clang-tidy: add explicit deleted constructors

Found with cppcoreguidelines-special-member-functions

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-05-30 22:46:50 -07:00
parent 9ef1cf15a9
commit 220d2bf026
30 changed files with 98 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ public:
~AoInit() noexcept {
ao_shutdown();
}
AoInit(const AoInit &) = delete;
AoInit &operator=(const AoInit &) = delete;
};
class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
@@ -55,6 +58,9 @@ class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
explicit AoOutput(const ConfigBlock &block);
~AoOutput() override;
AoOutput(const AoOutput &) = delete;
AoOutput &operator=(const AoOutput &) = delete;
public:
static AudioOutput *Create(EventLoop &, const ConfigBlock &block) {
return new AoOutput(block);