ui.cpp: deactivate copy constructor and assignment operator with "= delete"
This commit is contained in:
parent
31c828d25e
commit
1b23b0806b
|
@ -39,16 +39,14 @@ class ProgressDialog : public finalcut::FDialog
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
explicit ProgressDialog (finalcut::FWidget* = 0);
|
explicit ProgressDialog (finalcut::FWidget* = 0);
|
||||||
|
// Disable copy constructor
|
||||||
|
ProgressDialog (const ProgressDialog&) = delete;
|
||||||
|
// Disable assignment operator (=)
|
||||||
|
ProgressDialog& operator = (const ProgressDialog&) = delete;
|
||||||
// Destructor
|
// Destructor
|
||||||
~ProgressDialog();
|
~ProgressDialog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Disable copy constructor
|
|
||||||
ProgressDialog (const ProgressDialog&);
|
|
||||||
// Disable assignment operator (=)
|
|
||||||
ProgressDialog& operator = (const ProgressDialog&);
|
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onShow (finalcut::FShowEvent*);
|
virtual void onShow (finalcut::FShowEvent*);
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*);
|
||||||
|
@ -183,18 +181,17 @@ class TextWindow : public finalcut::FDialog
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
explicit TextWindow (finalcut::FWidget* = 0);
|
explicit TextWindow (finalcut::FWidget* = 0);
|
||||||
|
// Disable copy constructor
|
||||||
|
TextWindow (const TextWindow&) = delete;
|
||||||
|
// Disable assignment operator (=)
|
||||||
|
TextWindow& operator = (const TextWindow&) = delete;
|
||||||
// Destructor
|
// Destructor
|
||||||
~TextWindow();
|
~TextWindow();
|
||||||
|
|
||||||
|
// Method
|
||||||
void append (const finalcut::FString&);
|
void append (const finalcut::FString&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Disable copy constructor
|
|
||||||
TextWindow (const TextWindow&);
|
|
||||||
// Disable assignment operator (=)
|
|
||||||
TextWindow& operator = (const TextWindow&);
|
|
||||||
|
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize();
|
||||||
|
|
||||||
|
@ -251,15 +248,14 @@ class MyDialog : public finalcut::FDialog
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
explicit MyDialog (finalcut::FWidget* = 0);
|
explicit MyDialog (finalcut::FWidget* = 0);
|
||||||
|
// Disable copy constructor
|
||||||
|
MyDialog (const MyDialog&) = delete;
|
||||||
|
// Disable assignment operator (=)
|
||||||
|
MyDialog& operator = (const MyDialog&) = delete;
|
||||||
// Destructor
|
// Destructor
|
||||||
~MyDialog();
|
~MyDialog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Disable copy constructor
|
|
||||||
MyDialog (const MyDialog&);
|
|
||||||
// Disable assignment operator (=)
|
|
||||||
MyDialog& operator = (const MyDialog&);
|
|
||||||
|
|
||||||
// Method
|
// Method
|
||||||
void initMenu();
|
void initMenu();
|
||||||
void initMenuCallbacks();
|
void initMenuCallbacks();
|
||||||
|
|
Loading…
Reference in New Issue