Switched to DECLARE_NO_COPY_CLASS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a541c32586
commit
1a6a6043f7
@ -191,9 +191,6 @@ public:
|
|||||||
operator const char *() const { return (const char*)m_data; }
|
operator const char *() const { return (const char*)m_data; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Don't allow copy or assignment
|
|
||||||
wxMemoryBuffer(const wxMemoryBuffer&) {}
|
|
||||||
wxMemoryBuffer& operator=(const wxCharBuffer& src) {}
|
|
||||||
|
|
||||||
void ResizeIfNeeded(size_t newSize)
|
void ResizeIfNeeded(size_t newSize)
|
||||||
{
|
{
|
||||||
@ -205,6 +202,8 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxMemoryBuffer)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void* m_data;
|
void* m_data;
|
||||||
size_t m_size;
|
size_t m_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user