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:
@@ -40,9 +40,9 @@
|
|||||||
|
|
||||||
wxProtoInfo::wxProtoInfo(const wxChar *name, const wxChar *serv,
|
wxProtoInfo::wxProtoInfo(const wxChar *name, const wxChar *serv,
|
||||||
const bool need_host1, wxClassInfo *info)
|
const bool need_host1, wxClassInfo *info)
|
||||||
|
: m_protoname(name),
|
||||||
|
m_servname(serv)
|
||||||
{
|
{
|
||||||
m_protoname = name;
|
|
||||||
m_servname = serv;
|
|
||||||
m_cinfo = info;
|
m_cinfo = info;
|
||||||
m_needhost = need_host1;
|
m_needhost = need_host1;
|
||||||
next = wxURL::ms_protocols;
|
next = wxURL::ms_protocols;
|
||||||
|
|||||||
Reference in New Issue
Block a user