X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..573a1586187a35f6c7f2e83c82e48a75cc080046:/src/os2/fontdlg.cpp diff --git a/src/os2/fontdlg.cpp b/src/os2/fontdlg.cpp index 065949e3c1..56afb1cc61 100644 --- a/src/os2/fontdlg.cpp +++ b/src/os2/fontdlg.cpp @@ -45,17 +45,16 @@ wxFontDialog::wxFontDialog() m_dialogParent = NULL; } -wxFontDialog::wxFontDialog(wxWindow *parent, wxFontData *data) +wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& rData) { - Create(parent, data); + Create(parent, rData); } -bool wxFontDialog::Create(wxWindow *parent, wxFontData *data) +bool wxFontDialog::Create(wxWindow *parent, const wxFontData& rData) { m_dialogParent = parent; - if (data) - m_fontData = *data; + m_fontData = rData; return TRUE; }