Skip to content

Commit

Permalink
fixed signatures of deleted operator= (#5831)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 5, 2024
1 parent 93a53af commit 6ef3224
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/cppcheckexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CppCheckExecutor {
*/
CppCheckExecutor() = default;
CppCheckExecutor(const CppCheckExecutor &) = delete;
void operator=(const CppCheckExecutor&) = delete;
CppCheckExecutor& operator=(const CppCheckExecutor&) = delete;

/**
* Starts the checking.
Expand Down
2 changes: 1 addition & 1 deletion cli/executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Executor {
virtual ~Executor() = default;

Executor(const Executor &) = delete;
void operator=(const Executor &) = delete;
Executor& operator=(const Executor &) = delete;

virtual unsigned int check() = 0;

Expand Down
2 changes: 1 addition & 1 deletion cli/processexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion cli/singleexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion cli/threadexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion lib/checkmemoryleak.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class CPPCHECKLIB CheckMemoryLeak {
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) {}
Expand Down

0 comments on commit 6ef3224

Please sign in to comment.