X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c4c7d0466244810b9bf239aba5200628ebeadcc..db16e5c3aae30ee4502d3e0d41eed500af365fe9:/include/wx/mac/statline.h diff --git a/include/wx/mac/statline.h b/include/wx/mac/statline.h index af6516c90d..4651d04557 100644 --- a/include/wx/mac/statline.h +++ b/include/wx/mac/statline.h @@ -11,8 +11,8 @@ #ifndef _WX_GENERIC_STATLINE_H_ #define _WX_GENERIC_STATLINE_H_ -#ifdef __GNUG__ - #pragma interface +#if defined(__GNUG__) && !defined(__APPLE__) + #pragma interface "statline.h" #endif class wxStaticBox; @@ -27,7 +27,7 @@ class WXDLLEXPORT wxStaticLine : public wxStaticLineBase public: // constructors and pseudo-constructors - wxStaticLine() { } + wxStaticLine() : m_statbox(NULL) { } wxStaticLine( wxWindow *parent, wxWindowID id, @@ -35,6 +35,7 @@ public: const wxSize &size = wxDefaultSize, long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr ) + : m_statbox(NULL) { Create(parent, id, pos, size, style, name); }