Use semicolon after wxIMPLEMENT_*_CLASS* in wx's own implementations

wxIMPLEMENT_DYNAMIC/ABSTRACT_CLASS* is documented to be used with a
semicolon, though it is not mandatory.

Not touching headers yet, to avoid -pedantic warnings in user code.

See https://github.com/wxWidgets/wxWidgets/pull/2584
This commit is contained in:
Lauri Nurmi
2021-11-09 20:07:19 +02:00
committed by Vadim Zeitlin
parent 5cea9f4649
commit ed92c86785
8 changed files with 12 additions and 12 deletions

View File

@@ -17,9 +17,9 @@
#include "wx/ipcbase.h"
wxIMPLEMENT_ABSTRACT_CLASS(wxServerBase, wxObject)
wxIMPLEMENT_ABSTRACT_CLASS(wxClientBase, wxObject)
wxIMPLEMENT_ABSTRACT_CLASS(wxConnectionBase, wxObject)
wxIMPLEMENT_ABSTRACT_CLASS(wxServerBase, wxObject);
wxIMPLEMENT_ABSTRACT_CLASS(wxClientBase, wxObject);
wxIMPLEMENT_ABSTRACT_CLASS(wxConnectionBase, wxObject);
wxConnectionBase::wxConnectionBase(void *buffer, size_t bytes)
: m_buffer((char *)buffer),

View File

@@ -100,7 +100,7 @@ bool wxMenuBarStreamingCallback( const wxObject *WXUNUSED(object), wxObjectWrite
#if wxUSE_MENUBAR
wxIMPLEMENT_DYNAMIC_CLASS_XTI_CALLBACK(wxMenuBar, wxWindow, "wx/menu.h", \
wxMenuBarStreamingCallback)
wxMenuBarStreamingCallback);
#endif
#if wxUSE_EXTENDED_RTTI
@@ -187,7 +187,7 @@ wxENUM_MEMBER( wxITEM_RADIO )
wxEND_ENUM( wxItemKind )
wxIMPLEMENT_DYNAMIC_CLASS_XTI_CALLBACK(wxMenuItem, wxObject, "wx/menuitem.h", \
wxMenuItemStreamingCallback)
wxMenuItemStreamingCallback);
wxBEGIN_PROPERTIES_TABLE(wxMenuItem)
wxPROPERTY( Parent, wxMenu*, SetMenu, GetMenu, wxEMPTY_PARAMETER_VALUE, \

View File

@@ -22,7 +22,7 @@
#define TRACE_MODULE wxT("module")
wxIMPLEMENT_ABSTRACT_CLASS(wxModule, wxObject)
wxIMPLEMENT_ABSTRACT_CLASS(wxModule, wxObject);
wxModuleList wxModule::ms_modules;
bool wxModule::ms_areInitialized = false;

View File

@@ -38,7 +38,7 @@
// ----------------------------------------------------------------------------
wxIMPLEMENT_DYNAMIC_CLASS2_XTI(wxOwnerDrawnComboBox, wxComboCtrl, \
wxControlWithItems, "wx/odcombo.h")
wxControlWithItems, "wx/odcombo.h");
wxBEGIN_PROPERTIES_TABLE(wxOwnerDrawnComboBox)
wxEND_PROPERTIES_TABLE()