X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9576ca53db96b462ed4c0b4bdf47d64c40203e4..be88a6ade981b99d55fa1da20cd1a12be4a075f2:/src/mac/fontdlg.cpp diff --git a/src/mac/fontdlg.cpp b/src/mac/fontdlg.cpp index 60e8e9b987..e7875df4f5 100644 --- a/src/mac/fontdlg.cpp +++ b/src/mac/fontdlg.cpp @@ -14,7 +14,7 @@ #pragma implementation "fontdlg.h" #endif -#include "wx/stubs/fontdlg.h" +#include "wx/mac/fontdlg.h" #include "wx/cmndata.h" #if !USE_SHARED_LIBRARY @@ -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.