only call GSocket_Init() when needed and do call it before using GAddress_XXX

functions (fixes bug 510722)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-24 13:51:43 +00:00
parent e88be8c942
commit 6c0d0845c2
4 changed files with 99 additions and 16 deletions

View File

@@ -42,11 +42,14 @@ public:
void SetAddress(GAddress *address);
// we need to be able to create copies of the addresses polymorphically (i.e.
// wihtout knowing the exact address class)
// without knowing the exact address class)
virtual wxSockAddress *Clone() const = 0;
protected:
GAddress *m_address;
private:
void Init();
};
class WXDLLEXPORT wxIPV4address : public wxSockAddress {