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:
committed by
Vadim Zeitlin
parent
5cea9f4649
commit
ed92c86785
@@ -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),
|
||||
|
||||
@@ -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, \
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user