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:
@@ -28,15 +28,6 @@ public:
|
||||
wxDataFormat( const wchar_t *id ) { InitFromString(id); }
|
||||
wxDataFormat( const wxCStrData& id ) { InitFromString(id); }
|
||||
|
||||
wxDataFormat& operator=(const wxDataFormat& format)
|
||||
{
|
||||
if (&format != this)
|
||||
{
|
||||
m_type = format.m_type;
|
||||
m_format = format.m_format;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
wxDataFormat& operator=(NativeFormat format)
|
||||
{ SetId(format); return *this; }
|
||||
|
||||
|
Reference in New Issue
Block a user