Use wxString() instead of "" for empty strings
This will allow this code to work even when implicit conversion from "const char*" is disabled in wxString and is already marginally more efficient even now. See https://github.com/wxWidgets/wxWidgets/pull/782
This commit is contained in:
committed by
Vadim Zeitlin
parent
e905b94436
commit
8d02384792
@@ -77,7 +77,7 @@ bool wxInfoBarGeneric::Create(wxWindow *parent, wxWindowID winid)
|
||||
// the icon is not shown unless it's assigned a valid bitmap
|
||||
m_icon = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap);
|
||||
|
||||
m_text = new wxStaticText(this, wxID_ANY, "");
|
||||
m_text = new wxStaticText(this, wxID_ANY, wxString());
|
||||
m_text->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT));
|
||||
|
||||
m_button = wxBitmapButton::NewCloseButton(this, wxID_ANY);
|
||||
|
||||
Reference in New Issue
Block a user