disable gcc warning about class having private dtors and no friends (patch 1065318)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-12-12 11:55:37 +00:00
parent 70a7bd90f9
commit f8fbc92bdb
3 changed files with 9 additions and 5 deletions

View File

@@ -470,7 +470,6 @@ class wxZipMemory
{
public:
wxZipMemory() : m_data(NULL), m_size(0), m_capacity(0), m_ref(1) { }
~wxZipMemory() { delete m_data; }
wxZipMemory *AddRef() { m_ref++; return this; }
void Release() { if (--m_ref == 0) delete this; }
@@ -482,6 +481,7 @@ public:
wxZipMemory *Unique(size_t size);
private:
~wxZipMemory() { delete m_data; }
char *m_data;
size_t m_size;
@@ -548,7 +548,6 @@ class wxZipWeakLinks
{
public:
wxZipWeakLinks() : m_ref(1) { }
~wxZipWeakLinks() { wxASSERT(IsEmpty()); }
void Release(const wxZipInputStream* WXUNUSED(x))
{ if (--m_ref == 0) delete this; }
@@ -562,6 +561,7 @@ public:
bool IsEmpty() const { return m_entries.empty(); }
private:
~wxZipWeakLinks() { wxASSERT(IsEmpty()); }
int m_ref;
_wxOffsetZipEntryMap m_entries;
@@ -1147,7 +1147,6 @@ class wxZipStreamLink
{
public:
wxZipStreamLink(wxZipOutputStream *stream) : m_ref(1), m_stream(stream) { }
~wxZipStreamLink() { }
wxZipStreamLink *AddRef() { m_ref++; return this; }
wxZipOutputStream *GetOutputStream() const { return m_stream; }
@@ -1158,6 +1157,7 @@ public:
{ m_stream = NULL; if (--m_ref == 0) delete this; }
private:
~wxZipStreamLink() { }
int m_ref;
wxZipOutputStream *m_stream;