compilation fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-07-19 22:54:55 +00:00
parent b908d2244a
commit 1ecffbff71
5 changed files with 7 additions and 30 deletions

View File

@@ -120,10 +120,9 @@ public:
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
Init(title, style, NULL);
Init(title, style);
}
wxMenu( long style );
~wxMenu();
// operations
@@ -203,7 +202,7 @@ private:
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
, const wxFunction func = (wxFunction) NULL
#endif
);

View File

@@ -120,10 +120,9 @@ public:
#endif
wxMenu( const wxString& title = wxEmptyString, long style = 0 )
{
Init(title, style, NULL);
Init(title, style);
}
wxMenu( long style );
~wxMenu();
// operations
@@ -203,7 +202,7 @@ private:
void Init( const wxString& title,
long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
, const wxFunction func = (wxFunction) NULL
#endif
);

View File

@@ -155,8 +155,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
SetIcon(wxICON(mondrian));
// create a menu bar
// wxMenu *menuFile = new wxMenu;
wxMenu *menuFile = new wxMenu(wxMENU_TEAROFF);
wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
menuFile->Append(Minimal_About, "&About...\tCtrl-A", "Show about dialog");
menuFile->Append(Minimal_Test, "&Test...\tCtrl-T", "Test");

View File

@@ -626,19 +626,9 @@ bool wxMenuItem::IsChecked() const
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
{
Init(title, func, style);
}
wxMenu::wxMenu(long style)
{
Init(wxEmptyString, (wxFunction) NULL, style);
}
void
wxMenu::Init( const wxString& title,
long style,
long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif

View File

@@ -626,19 +626,9 @@ bool wxMenuItem::IsChecked() const
IMPLEMENT_DYNAMIC_CLASS(wxMenu,wxEvtHandler)
wxMenu::wxMenu( const wxString& title, const wxFunction func, long style )
{
Init(title, func, style);
}
wxMenu::wxMenu(long style)
{
Init(wxEmptyString, (wxFunction) NULL, style);
}
void
wxMenu::Init( const wxString& title,
long style,
long style
#ifdef WXWIN_COMPATIBILITY
, const wxFunction func
#endif