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:
@@ -226,6 +226,9 @@ public:
|
||||
snd_config_update_free_global();
|
||||
}
|
||||
|
||||
AlsaOutput(const AlsaOutput &) = delete;
|
||||
AlsaOutput &operator=(const AlsaOutput &) = delete;
|
||||
|
||||
using MultiSocketMonitor::GetEventLoop;
|
||||
|
||||
gcc_pure
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -49,6 +49,9 @@ public:
|
||||
CloseFifo();
|
||||
}
|
||||
|
||||
FifoOutput(const FifoOutput &) = delete;
|
||||
FifoOutput &operator=(const FifoOutput &) = delete;
|
||||
|
||||
static AudioOutput *Create(EventLoop &,
|
||||
const ConfigBlock &block) {
|
||||
return new FifoOutput(block);
|
||||
|
||||
@@ -51,6 +51,9 @@ struct ShoutOutput final : AudioOutput {
|
||||
explicit ShoutOutput(const ConfigBlock &block);
|
||||
~ShoutOutput() override;
|
||||
|
||||
ShoutOutput(const ShoutOutput &) = delete;
|
||||
ShoutOutput &operator=(const ShoutOutput &) = delete;
|
||||
|
||||
static AudioOutput *Create(EventLoop &event_loop,
|
||||
const ConfigBlock &block);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user