Updated font dialog constructors to use a reference to the font data
as per more recent convention git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,17 +30,16 @@ wxFontDialog::wxFontDialog()
|
||||
m_dialogParent = NULL;
|
||||
}
|
||||
|
||||
wxFontDialog::wxFontDialog(wxWindow *parent, wxFontData *data)
|
||||
wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
|
||||
{
|
||||
Create(parent, data);
|
||||
}
|
||||
|
||||
bool wxFontDialog::Create(wxWindow *parent, wxFontData *data)
|
||||
bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
|
||||
{
|
||||
m_dialogParent = parent;
|
||||
|
||||
if (data)
|
||||
m_fontData = *data;
|
||||
m_fontData = data;
|
||||
|
||||
// TODO: you may need to do dialog creation here, unless it's
|
||||
// done in ShowModal.
|
||||
|
Reference in New Issue
Block a user