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
@@ -190,7 +190,7 @@ wxSize wxFileDialogBase::GetExtraControlSize()
|
||||
// create the extra control in an empty dialog just to find its size: this
|
||||
// is not terribly efficient but we do need to know the size before
|
||||
// creating the native dialog and this seems to be the only way
|
||||
wxDialog dlg(NULL, wxID_ANY, "");
|
||||
wxDialog dlg(NULL, wxID_ANY, wxString());
|
||||
return (*m_extraControlCreator)(&dlg)->GetSize();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user