From 37cda9cb1c55bdbb10d017039ae5920f440ad3b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Dec 1998 00:27:18 +0000 Subject: [PATCH] some very minor changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/tabg.h | 4 +--- src/common/log.cpp | 4 ++-- src/gtk/menu.cpp | 3 ++- src/gtk1/menu.cpp | 3 ++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/generic/tabg.h b/include/wx/generic/tabg.h index 948d55c593..b3a02100ee 100644 --- a/include/wx/generic/tabg.h +++ b/include/wx/generic/tabg.h @@ -85,9 +85,7 @@ protected: class WXDLLEXPORT wxTabLayer: public wxList { -// Why did someone remove this, please? -DECLARE_DYNAMIC_CLASS(wxTabLayer) - wxTabLayer():wxList() {} + DECLARE_DYNAMIC_CLASS(wxTabLayer) }; /* diff --git a/src/common/log.cpp b/src/common/log.cpp index 52e44a77e1..fd9b103b3d 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -806,11 +806,11 @@ wxFrame *wxLogWindow::GetFrame() const return m_pLogFrame; } -void wxLogWindow::OnFrameCreate(wxFrame *WXUNUSED(frame)) +void wxLogWindow::OnFrameCreate(wxFrame * WXUNUSED(frame)) { } -void wxLogWindow::OnFrameDelete(wxFrame *WXUNUSED(frame)) +void wxLogWindow::OnFrameDelete(wxFrame * WXUNUSED(frame)) { m_pLogFrame = (wxLogFrame *)NULL; } diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 09c77c3479..11d281273e 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -152,7 +152,8 @@ static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu ) { int id = menu->FindMenuIdByMenuItem(widget); - wxASSERT( id != -1 ); // should find it! + // should find it for normal (not popup) menu + wxASSERT( (id != -1) || (menu->GetInvokingWindow() != NULL) ); if (!menu->IsEnabled(id)) return; diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 09c77c3479..11d281273e 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -152,7 +152,8 @@ static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu ) { int id = menu->FindMenuIdByMenuItem(widget); - wxASSERT( id != -1 ); // should find it! + // should find it for normal (not popup) menu + wxASSERT( (id != -1) || (menu->GetInvokingWindow() != NULL) ); if (!menu->IsEnabled(id)) return; -- 2.45.2