Remove unnecessary copy ctors/copy assignment operators
C++11 deprecates having one without the other. Eliminates many, many GCC -Wdeprecated-copy warnings.
This commit is contained in:
@@ -1312,11 +1312,6 @@ public:
|
||||
*/
|
||||
wxTextBoxAttr() { Init(); }
|
||||
|
||||
/**
|
||||
Copy constructor.
|
||||
*/
|
||||
wxTextBoxAttr(const wxTextBoxAttr& attr) { Init(); (*this) = attr; }
|
||||
|
||||
/**
|
||||
Initialises this object.
|
||||
*/
|
||||
|
@@ -132,9 +132,6 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextCharacterStyleDefinition: public wxRichText
|
||||
wxDECLARE_DYNAMIC_CLASS(wxRichTextCharacterStyleDefinition);
|
||||
public:
|
||||
|
||||
/// Copy constructor
|
||||
wxRichTextCharacterStyleDefinition(const wxRichTextCharacterStyleDefinition& def): wxRichTextStyleDefinition(def) {}
|
||||
|
||||
/// Default constructor
|
||||
wxRichTextCharacterStyleDefinition(const wxString& name = wxEmptyString):
|
||||
wxRichTextStyleDefinition(name) {}
|
||||
|
Reference in New Issue
Block a user