clang-tidy: Delete unimplemented private constructors

run-clang-tidy -header-filter='.*' -checks='-*,modernize-use-equals-delete' -fix
This commit is contained in:
Urs Fleisch
2023-07-16 07:00:43 +02:00
parent 77ab5e9689
commit 231772b2ad
72 changed files with 148 additions and 148 deletions

View File

@ -152,8 +152,8 @@ namespace TagLib {
static bool isSupported(IOStream *stream);
private:
File(const File &);
File &operator=(const File &);
File(const File &) = delete;
File &operator=(const File &) = delete;
void read(bool readProperties, Properties::ReadStyle propertiesStyle);
void scan();

View File

@ -103,8 +103,8 @@ namespace TagLib {
File(IOStream *stream);
private:
File(const File &);
File &operator=(const File &);
File(const File &) = delete;
File &operator=(const File &) = delete;
/*!
* Reads the pages from the beginning of the file until enough to compose

View File

@ -207,8 +207,8 @@ namespace TagLib {
bool containsLastPacket = false);
private:
Page(const Page &);
Page &operator=(const Page &);
Page(const Page &) = delete;
Page &operator=(const Page &) = delete;
class PagePrivate;
PagePrivate *d;

View File

@ -216,8 +216,8 @@ namespace TagLib {
ByteVector render() const;
private:
PageHeader(const PageHeader &);
PageHeader &operator=(const PageHeader &);
PageHeader(const PageHeader &) = delete;
PageHeader &operator=(const PageHeader &) = delete;
void read(Ogg::File *file, offset_t pageOffset);
ByteVector lacingValues() const;

View File

@ -123,8 +123,8 @@ namespace TagLib {
static bool isSupported(IOStream *stream);
private:
File(const File &);
File &operator=(const File &);
File(const File &) = delete;
File &operator=(const File &) = delete;
void read(bool readProperties);

View File

@ -99,8 +99,8 @@ namespace TagLib {
int opusVersion() const;
private:
Properties(const Properties &);
Properties &operator=(const Properties &);
Properties(const Properties &) = delete;
Properties &operator=(const Properties &) = delete;
void read(File *file);

View File

@ -123,8 +123,8 @@ namespace TagLib {
static bool isSupported(IOStream *stream);
private:
File(const File &);
File &operator=(const File &);
File(const File &) = delete;
File &operator=(const File &) = delete;
void read(bool readProperties);

View File

@ -94,8 +94,8 @@ namespace TagLib {
int speexVersion() const;
private:
Properties(const Properties &);
Properties &operator=(const Properties &);
Properties(const Properties &) = delete;
Properties &operator=(const Properties &) = delete;
void read(File *file);

View File

@ -132,8 +132,8 @@ namespace TagLib {
static bool isSupported(IOStream *stream);
private:
File(const File &);
File &operator=(const File &);
File(const File &) = delete;
File &operator=(const File &) = delete;
void read(bool readProperties);

View File

@ -115,8 +115,8 @@ namespace TagLib {
int bitrateMinimum() const;
private:
Properties(const Properties &);
Properties &operator=(const Properties &);
Properties(const Properties &) = delete;
Properties &operator=(const Properties &) = delete;
void read(File *file);

View File

@ -254,8 +254,8 @@ namespace TagLib {
void parse(const ByteVector &data);
private:
XiphComment(const XiphComment &);
XiphComment &operator=(const XiphComment &);
XiphComment(const XiphComment &) = delete;
XiphComment &operator=(const XiphComment &) = delete;
class XiphCommentPrivate;
XiphCommentPrivate *d;