X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9576ca53db96b462ed4c0b4bdf47d64c40203e4..371fd015a7c7bd9aeaaccb05b19d07b69740755c:/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.