Fix a number of noOperatorEq and noCopyConstructor warnings
This commit is contained in:
parent
9710e819be
commit
e5c4e31da6
|
@ -49,6 +49,8 @@ class CodeEditor : public QPlainTextEdit {
|
|||
|
||||
public:
|
||||
explicit CodeEditor(QWidget *parent);
|
||||
CodeEditor(const CodeEditor &) = delete;
|
||||
CodeEditor &operator=(const CodeEditor &) = delete;
|
||||
|
||||
void lineNumberAreaPaintEvent(QPaintEvent *event);
|
||||
int lineNumberAreaWidth();
|
||||
|
|
|
@ -16,7 +16,9 @@ class LibraryAddFunctionDialog : public QDialog {
|
|||
|
||||
public:
|
||||
explicit LibraryAddFunctionDialog(QWidget *parent = 0);
|
||||
LibraryAddFunctionDialog(const LibraryAddFunctionDialog &) = delete;
|
||||
~LibraryAddFunctionDialog();
|
||||
LibraryAddFunctionDialog &operator=(const LibraryAddFunctionDialog &) = delete;
|
||||
|
||||
QString functionName() const;
|
||||
int numberOfArguments() const;
|
||||
|
|
|
@ -35,7 +35,9 @@ class LibraryDialog : public QDialog {
|
|||
|
||||
public:
|
||||
explicit LibraryDialog(QWidget *parent = 0);
|
||||
LibraryDialog(const LibraryDialog &) = delete;
|
||||
~LibraryDialog();
|
||||
LibraryDialog &operator=(const LibraryDialog &) = delete;
|
||||
|
||||
private slots:
|
||||
void openCfg();
|
||||
|
|
|
@ -13,7 +13,9 @@ class LibraryEditArgDialog : public QDialog {
|
|||
|
||||
public:
|
||||
LibraryEditArgDialog(QWidget *parent, const CppcheckLibraryData::Function::Arg &arg);
|
||||
LibraryEditArgDialog(const LibraryEditArgDialog &) = delete;
|
||||
~LibraryEditArgDialog();
|
||||
LibraryEditArgDialog &operator=(const LibraryEditArgDialog &) = delete;
|
||||
|
||||
CppcheckLibraryData::Function::Arg getArg() const;
|
||||
|
||||
|
|
|
@ -54,7 +54,9 @@ public:
|
|||
enum { MaxRecentProjects = 5 };
|
||||
|
||||
MainWindow(TranslationHandler* th, QSettings* settings);
|
||||
MainWindow(const MainWindow &) = delete;
|
||||
virtual ~MainWindow();
|
||||
MainWindow &operator=(const MainWindow &) = delete;
|
||||
|
||||
/**
|
||||
* List of checked platforms.
|
||||
|
|
|
@ -13,7 +13,9 @@ class NewSuppressionDialog : public QDialog {
|
|||
|
||||
public:
|
||||
explicit NewSuppressionDialog(QWidget *parent = 0);
|
||||
NewSuppressionDialog(const NewSuppressionDialog &) = delete;
|
||||
~NewSuppressionDialog();
|
||||
NewSuppressionDialog &operator=(const NewSuppressionDialog &) = delete;
|
||||
|
||||
Suppressions::Suppression getSuppression() const;
|
||||
|
||||
|
|
|
@ -46,7 +46,9 @@ public:
|
|||
|
||||
explicit ResultsView(QWidget * parent = 0);
|
||||
void initialize(QSettings *settings, ApplicationList *list, ThreadHandler *checkThreadHandler);
|
||||
ResultsView(const ResultsView &) = delete;
|
||||
virtual ~ResultsView();
|
||||
ResultsView &operator=(const ResultsView &) = delete;
|
||||
|
||||
void setTags(const QStringList &tags) {
|
||||
mUI.mTree->setTags(tags);
|
||||
|
|
|
@ -41,7 +41,9 @@ public:
|
|||
SettingsDialog(ApplicationList *list,
|
||||
TranslationHandler *translator,
|
||||
QWidget *parent = 0);
|
||||
SettingsDialog(const SettingsDialog &) = delete;
|
||||
virtual ~SettingsDialog();
|
||||
SettingsDialog &operator=(const SettingsDialog &) = delete;
|
||||
|
||||
/**
|
||||
* @brief Save all values to QSettings
|
||||
|
|
Loading…
Reference in New Issue