Do not put semicolons after the definition of an inline function.
Even though most compilers just ignore this, it's just wrong and if you do get warnings about header files, they can become quite overwhelming. Forward port of r70163. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,8 +38,8 @@ public:
|
||||
unsigned char Green() const { return m_green; }
|
||||
unsigned char Blue() const { return m_blue; }
|
||||
|
||||
WXPixel GetPixel() const { return m_pixel; };
|
||||
void SetPixel(WXPixel pixel) { m_pixel = pixel; m_isInit = true; };
|
||||
WXPixel GetPixel() const { return m_pixel; }
|
||||
void SetPixel(WXPixel pixel) { m_pixel = pixel; m_isInit = true; }
|
||||
|
||||
inline bool operator == (const wxColour& colour) const { return (m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue); }
|
||||
|
||||
|
@@ -106,8 +106,8 @@ public:
|
||||
WXWidget GetMainWidget() const { return m_mainWidget; }
|
||||
|
||||
//Copied from wxComboBoxBase because for wxMOTIF wxComboBox does not inherit from it.
|
||||
virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); };
|
||||
virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); };
|
||||
virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); }
|
||||
virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); }
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
@@ -63,7 +63,7 @@ class WXDLLIMPEXP_CORE wxTextDropTarget: public wxDropTarget
|
||||
{
|
||||
public:
|
||||
|
||||
wxTextDropTarget() {};
|
||||
wxTextDropTarget() {}
|
||||
virtual bool OnDrop( long x, long y, const void *data, size_t size );
|
||||
virtual bool OnDropText( long x, long y, const char *psz );
|
||||
|
||||
@@ -111,7 +111,7 @@ class WXDLLIMPEXP_CORE wxFileDropTarget: public wxDropTarget
|
||||
{
|
||||
public:
|
||||
|
||||
wxFileDropTarget() {};
|
||||
wxFileDropTarget() {}
|
||||
|
||||
virtual bool OnDrop( long x, long y, const void *data, size_t size );
|
||||
virtual bool OnDropFiles( long x, long y,
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
void SetData( wxDataObject &data );
|
||||
wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
||||
|
||||
virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return true; };
|
||||
virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return true; }
|
||||
|
||||
// implementation
|
||||
#if 0
|
||||
|
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
// Implementation
|
||||
virtual void Command(wxCommandEvent& event)
|
||||
{ (void)ProcessCommand(event); };
|
||||
{ (void)ProcessCommand(event); }
|
||||
virtual void ChangeFont(bool keepOriginalSize = true);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
|
Reference in New Issue
Block a user