fixed signatures of deleted `operator=` (#5831)

This commit is contained in:
Oliver Stöneberg 2024-01-05 11:12:30 +01:00 committed by GitHub
parent 93a53af168
commit 6ef3224bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ public:
*/
CppCheckExecutor() = default;
CppCheckExecutor(const CppCheckExecutor &) = delete;
void operator=(const CppCheckExecutor&) = delete;
CppCheckExecutor& operator=(const CppCheckExecutor&) = delete;
/**
* Starts the checking.

View File

@ -45,7 +45,7 @@ public:
virtual ~Executor() = default;
Executor(const Executor &) = delete;
void operator=(const Executor &) = delete;
Executor& operator=(const Executor &) = delete;
virtual unsigned int check() = 0;

View File

@ -43,7 +43,7 @@ class ProcessExecutor : public Executor {
public:
ProcessExecutor(const std::list<std::pair<std::string, std::size_t>> &files, const std::list<FileSettings>& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand);
ProcessExecutor(const ProcessExecutor &) = delete;
void operator=(const ProcessExecutor &) = delete;
ProcessExecutor& operator=(const ProcessExecutor &) = delete;
unsigned int check() override;

View File

@ -37,7 +37,7 @@ class SingleExecutor : public Executor
public:
SingleExecutor(CppCheck &cppcheck, const std::list<std::pair<std::string, std::size_t>> &files, const std::list<FileSettings>& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger);
SingleExecutor(const SingleExecutor &) = delete;
void operator=(const SingleExecutor &) = delete;
SingleExecutor& operator=(const SingleExecutor &) = delete;
unsigned int check() override;

View File

@ -45,7 +45,7 @@ class ThreadExecutor : public Executor {
public:
ThreadExecutor(const std::list<std::pair<std::string, std::size_t>> &files, const std::list<FileSettings>& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand);
ThreadExecutor(const ThreadExecutor &) = delete;
void operator=(const ThreadExecutor &) = delete;
ThreadExecutor& operator=(const ThreadExecutor &) = delete;
unsigned int check() override;

View File

@ -86,7 +86,7 @@ private:
public:
CheckMemoryLeak() = delete;
CheckMemoryLeak(const CheckMemoryLeak &) = delete;
void operator=(const CheckMemoryLeak &) = delete;
CheckMemoryLeak& operator=(const CheckMemoryLeak &) = delete;
CheckMemoryLeak(const Tokenizer *t, ErrorLogger *e, const Settings *s)
: mTokenizer_(t), mErrorLogger_(e), mSettings_(s) {}