X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21802234dfc226c369e7d48af58e6c1b7f7242a3..cc164686f3dc689732395f11210c5bb9a76b6ff2:/src/os2/fontdlg.cpp diff --git a/src/os2/fontdlg.cpp b/src/os2/fontdlg.cpp index 841c3b56fd..56afb1cc61 100644 --- a/src/os2/fontdlg.cpp +++ b/src/os2/fontdlg.cpp @@ -35,9 +35,7 @@ #define wxDIALOG_DEFAULT_X 300 #define wxDIALOG_DEFAULT_Y 300 -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog) -#endif /* * wxFontDialog @@ -47,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; }