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:
@@ -107,6 +107,9 @@ public:
|
||||
*/
|
||||
virtual ~InputStream() noexcept;
|
||||
|
||||
InputStream(const InputStream &) = delete;
|
||||
InputStream &operator=(const InputStream &) = delete;
|
||||
|
||||
/**
|
||||
* Opens a new input stream. You may not access it until the "ready"
|
||||
* flag is set.
|
||||
|
@@ -99,6 +99,9 @@ public:
|
||||
snd_pcm_close(capture_handle);
|
||||
}
|
||||
|
||||
AlsaInputStream(const AlsaInputStream &) = delete;
|
||||
AlsaInputStream &operator=(const AlsaInputStream &) = delete;
|
||||
|
||||
static InputStreamPtr Create(EventLoop &event_loop, const char *uri,
|
||||
Mutex &mutex);
|
||||
|
||||
|
@@ -88,6 +88,9 @@ class CdioParanoiaInputStream final : public InputStream {
|
||||
cdio_destroy(cdio);
|
||||
}
|
||||
|
||||
CdioParanoiaInputStream(const CdioParanoiaInputStream &) = delete;
|
||||
CdioParanoiaInputStream &operator=(const CdioParanoiaInputStream &) = delete;
|
||||
|
||||
/* virtual methods from InputStream */
|
||||
[[nodiscard]] bool IsEOF() const noexcept override;
|
||||
size_t Read(std::unique_lock<Mutex> &lock,
|
||||
|
@@ -41,6 +41,9 @@ public:
|
||||
Stop();
|
||||
}
|
||||
|
||||
MmsInputStream(const MmsInputStream &) = delete;
|
||||
MmsInputStream &operator=(const MmsInputStream &) = delete;
|
||||
|
||||
protected:
|
||||
void Open() override;
|
||||
size_t ThreadRead(void *ptr, size_t size) override;
|
||||
|
@@ -51,6 +51,9 @@ public:
|
||||
DeferClose();
|
||||
}
|
||||
|
||||
NfsInputStream(const NfsInputStream &) = delete;
|
||||
NfsInputStream &operator=(const NfsInputStream &) = delete;
|
||||
|
||||
void Open() {
|
||||
assert(!IsReady());
|
||||
|
||||
|
@@ -57,6 +57,9 @@ public:
|
||||
qobuz_client->RemoveLoginHandler(*this);
|
||||
}
|
||||
|
||||
QobuzInputStream(const QobuzInputStream &) = delete;
|
||||
QobuzInputStream &operator=(const QobuzInputStream &) = delete;
|
||||
|
||||
/* virtual methods from InputStream */
|
||||
|
||||
void Check() override {
|
||||
|
@@ -70,6 +70,9 @@ public:
|
||||
tidal_session->RemoveLoginHandler(*this);
|
||||
}
|
||||
|
||||
TidalInputStream(const TidalInputStream &) = delete;
|
||||
TidalInputStream &operator=(const TidalInputStream &) = delete;
|
||||
|
||||
/* virtual methods from InputStream */
|
||||
|
||||
void Check() override {
|
||||
|
Reference in New Issue
Block a user