initialize wxStrings in initialization list, not ctor body; this is more efficient and incidentally also fixes crash under Mac with gcc 3.3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-09 19:58:28 +00:00
parent f85cfb32fa
commit 69268d6ded

View File

@@ -40,9 +40,9 @@
wxProtoInfo::wxProtoInfo(const wxChar *name, const wxChar *serv,
const bool need_host1, wxClassInfo *info)
: m_protoname(name),
m_servname(serv)
{
m_protoname = name;
m_servname = serv;
m_cinfo = info;
m_needhost = need_host1;
next = wxURL::ms_protocols;