X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..be88a6ade981b99d55fa1da20cd1a12be4a075f2:/src/mac/fontdlg.cpp diff --git a/src/mac/fontdlg.cpp b/src/mac/fontdlg.cpp index 9a0843d64b..e7875df4f5 100644 --- a/src/mac/fontdlg.cpp +++ b/src/mac/fontdlg.cpp @@ -17,7 +17,9 @@ #include "wx/mac/fontdlg.h" #include "wx/cmndata.h" +#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog) +#endif /* * wxFontDialog @@ -28,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.