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:
@@ -235,13 +235,6 @@ public:
|
||||
|
||||
explicit wxBaseSortedArray(SCMPFUNC fn) : m_fnCompare(fn) { }
|
||||
|
||||
wxBaseSortedArray& operator=(const wxBaseSortedArray& src)
|
||||
{
|
||||
wxBaseArray<T, Sorter>::operator=(src);
|
||||
m_fnCompare = src.m_fnCompare;
|
||||
return *this;
|
||||
}
|
||||
|
||||
size_t IndexForInsert(T item) const
|
||||
{
|
||||
return this->wxBaseArray<T, Sorter>::IndexForInsert(item, m_fnCompare);
|
||||
@@ -656,9 +649,6 @@ private:
|
||||
wxBaseObjectArrayFor##name; \
|
||||
classdecl name : public wxBaseObjectArrayFor##name \
|
||||
{ \
|
||||
public: \
|
||||
name() : wxBaseObjectArrayFor##name() { } \
|
||||
name(const name& src) : wxBaseObjectArrayFor##name(src) { } \
|
||||
}
|
||||
|
||||
#define WX_DECLARE_USER_EXPORTED_OBJARRAY(T, name, expmode) \
|
||||
|
Reference in New Issue
Block a user