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:
@@ -80,10 +80,10 @@ public:
|
||||
virtual void Clear();
|
||||
|
||||
virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; }
|
||||
virtual void EndDoc(void) {};
|
||||
virtual void EndDoc(void) {}
|
||||
|
||||
virtual void StartPage(void) {};
|
||||
virtual void EndPage(void) {};
|
||||
virtual void StartPage(void) {}
|
||||
virtual void EndPage(void) {}
|
||||
|
||||
virtual void SetFont(const wxFont& font);
|
||||
virtual void SetPen(const wxPen& pen);
|
||||
|
@@ -53,8 +53,8 @@ public:
|
||||
virtual int GetSelection() const = 0;
|
||||
virtual void GetSelection(long *from, long *to) const = 0;
|
||||
|
||||
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") ); }
|
||||
|
||||
// may return value different from GetSelection() when the combobox
|
||||
// dropdown is shown and the user selected, but not yet accepted, a value
|
||||
|
@@ -1210,7 +1210,7 @@ public:
|
||||
virtual bool HasDefaultCompare() const
|
||||
{ return true; }
|
||||
virtual unsigned int GetColumnCount() const
|
||||
{ return 1; };
|
||||
{ return 1; }
|
||||
virtual wxString GetColumnType( unsigned int WXUNUSED(col) ) const
|
||||
{ return wxT("wxDataViewIconText"); }
|
||||
|
||||
|
@@ -130,7 +130,7 @@ public:
|
||||
// Called when a tab is activated
|
||||
virtual void OnTabActivate(int activateId, int deactivateId);
|
||||
// Allows vetoing
|
||||
virtual bool OnTabPreActivate(int WXUNUSED(activateId), int WXUNUSED(deactivateId) ) { return true; };
|
||||
virtual bool OnTabPreActivate(int WXUNUSED(activateId), int WXUNUSED(deactivateId) ) { return true; }
|
||||
|
||||
// Allows use of application-supplied wxTabControl classes.
|
||||
virtual wxTabControl *OnCreateTabControl(void) { return new wxTabControl(this); }
|
||||
|
@@ -143,7 +143,7 @@ public:
|
||||
|
||||
#ifdef __WXUNIVERSAL__
|
||||
// resolve the conflict with wxWindowUniv::SetCurrent()
|
||||
virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); };
|
||||
virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@@ -94,7 +94,7 @@ public:
|
||||
#if wxUSE_PALETTE
|
||||
wxPalette *GetPalette() const;
|
||||
void SetPalette(const wxPalette& palette);
|
||||
wxPalette *GetColourMap() const { return GetPalette(); };
|
||||
wxPalette *GetColourMap() const { return GetPalette(); }
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
static void InitStandardHandlers();
|
||||
|
@@ -23,7 +23,7 @@ public:
|
||||
virtual ~wxGTKDCImpl();
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
|
||||
void SetColourMap( const wxPalette& palette ) { SetPalette(palette); }
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
// Resolution in pixels per logical inch
|
||||
|
@@ -88,7 +88,7 @@ public:
|
||||
Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name );
|
||||
}
|
||||
|
||||
virtual ~wxGtkFileCtrl() {};
|
||||
virtual ~wxGtkFileCtrl() {}
|
||||
|
||||
void Init();
|
||||
bool Create( wxWindow *parent,
|
||||
|
@@ -43,8 +43,8 @@ public:
|
||||
|
||||
void SetShadowWidth( int WXUNUSED(w) ) { }
|
||||
void SetBezelFace( int WXUNUSED(w) ) { }
|
||||
int GetShadowWidth() const { return 0; };
|
||||
int GetBezelFace() const { return 0; };
|
||||
int GetShadowWidth() const { return 0; }
|
||||
int GetBezelFace() const { return 0; }
|
||||
|
||||
// determinate mode API
|
||||
void SetRange( int r );
|
||||
|
@@ -21,7 +21,7 @@
|
||||
class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
|
||||
{
|
||||
public:
|
||||
wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; };
|
||||
wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }
|
||||
|
||||
virtual bool Start( int millisecs = -1, bool oneShot = false );
|
||||
virtual void Stop();
|
||||
|
@@ -55,7 +55,7 @@ public:
|
||||
|
||||
virtual void ShowWithoutActivating();
|
||||
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
|
||||
virtual bool IsFullScreen() const { return m_fsIsShowing; };
|
||||
virtual bool IsFullScreen() const { return m_fsIsShowing; }
|
||||
|
||||
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
|
||||
|
||||
|
@@ -105,7 +105,7 @@ public:
|
||||
#if wxUSE_PALETTE
|
||||
wxPalette *GetPalette() const;
|
||||
void SetPalette(const wxPalette& palette);
|
||||
wxPalette *GetColourMap() const { return GetPalette(); };
|
||||
wxPalette *GetColourMap() const { return GetPalette(); }
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
static void InitStandardHandlers();
|
||||
|
@@ -23,7 +23,7 @@ public:
|
||||
virtual ~wxGTKDCImpl() { }
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
void SetColourMap( const wxPalette& palette ) { SetPalette(palette); };
|
||||
void SetColourMap( const wxPalette& palette ) { SetPalette(palette); }
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
// Resolution in pixels per logical inch
|
||||
|
@@ -45,8 +45,8 @@ public:
|
||||
void SetBezelFace( int WXUNUSED(w) ) { }
|
||||
void SetRange( int r );
|
||||
void SetValue( int pos );
|
||||
int GetShadowWidth() const { return 0; };
|
||||
int GetBezelFace() const { return 0; };
|
||||
int GetShadowWidth() const { return 0; }
|
||||
int GetBezelFace() const { return 0; }
|
||||
int GetRange() const;
|
||||
int GetValue() const;
|
||||
|
||||
|
@@ -30,7 +30,7 @@ public:
|
||||
virtual ~wxMessageDialog();
|
||||
|
||||
int ShowModal();
|
||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; }
|
||||
|
||||
protected:
|
||||
// implement some base class methods to do nothing to avoid asserts and
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
virtual void Restore();
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
|
||||
virtual bool IsFullScreen() const { return m_fsIsShowing; };
|
||||
virtual bool IsFullScreen() const { return m_fsIsShowing; }
|
||||
|
||||
virtual bool SetShape(const wxRegion& region);
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class WXDLLIMPEXP_CORE wxWebKitCtrl : public wxControl
|
||||
public:
|
||||
DECLARE_DYNAMIC_CLASS(wxWebKitCtrl)
|
||||
|
||||
wxWebKitCtrl() {};
|
||||
wxWebKitCtrl() {}
|
||||
wxWebKitCtrl(wxWindow *parent,
|
||||
wxWindowID winID,
|
||||
const wxString& strURL,
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
const wxString& name = wxWebKitCtrlNameStr)
|
||||
{
|
||||
Create(parent, winID, strURL, pos, size, style, validator, name);
|
||||
};
|
||||
}
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID winID,
|
||||
const wxString& strURL,
|
||||
|
@@ -1198,7 +1198,7 @@ class WXDLLIMPEXP_BASE wxList : public wxObjectList
|
||||
{
|
||||
public:
|
||||
#if defined(wxWARN_COMPAT_LIST_USE) && !wxUSE_STD_CONTAINERS
|
||||
wxList() { };
|
||||
wxList() { }
|
||||
wxDEPRECATED( wxList(int key_type) );
|
||||
#elif !wxUSE_STD_CONTAINERS
|
||||
wxList(int key_type = wxKEY_NONE);
|
||||
|
@@ -81,7 +81,7 @@ public:
|
||||
#if wxUSE_MENUS
|
||||
// return the pointer to the current window menu or NULL if we don't have
|
||||
// because of wxFRAME_NO_WINDOW_MENU style
|
||||
wxMenu* GetWindowMenu() const { return m_windowMenu; };
|
||||
wxMenu* GetWindowMenu() const { return m_windowMenu; }
|
||||
|
||||
// use the given menu instead of the default window menu
|
||||
//
|
||||
|
@@ -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();
|
||||
|
@@ -19,7 +19,7 @@
|
||||
class WXDLLIMPEXP_BASE wxMSWTimerImpl : public wxTimerImpl
|
||||
{
|
||||
public:
|
||||
wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; };
|
||||
wxMSWTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_id = 0; }
|
||||
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = false);
|
||||
virtual void Stop();
|
||||
|
@@ -305,7 +305,7 @@ protected:
|
||||
|
||||
public:
|
||||
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
|
||||
~VirtualProtocol() {};
|
||||
~VirtualProtocol() {}
|
||||
|
||||
//IUnknown
|
||||
DECLARE_IUNKNOWN_METHODS;
|
||||
|
@@ -110,7 +110,7 @@ class WXDLLIMPEXP_CORE wxBitmapCheckBox: public wxCheckBox
|
||||
private:
|
||||
|
||||
virtual void SetLabel(const wxString& rsString)
|
||||
{ wxCheckBox::SetLabel(rsString); };
|
||||
{ wxCheckBox::SetLabel(rsString); }
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
|
||||
};
|
||||
#endif
|
||||
|
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
bool operator != (const wxColour& rColour) const { return !(*this == rColour); }
|
||||
|
||||
WXCOLORREF GetPixel(void) const { return m_vPixel; };
|
||||
WXCOLORREF GetPixel(void) const { return m_vPixel; }
|
||||
|
||||
|
||||
private:
|
||||
|
@@ -63,8 +63,8 @@ public:
|
||||
//
|
||||
// For ownerdraw items
|
||||
//
|
||||
virtual bool OS2OnDraw(WXDRAWITEMSTRUCT* WXUNUSED(pItem)) { return false; };
|
||||
virtual long OS2OnMeasure(WXMEASUREITEMSTRUCT* WXUNUSED(pItem)) { return 0L; };
|
||||
virtual bool OS2OnDraw(WXDRAWITEMSTRUCT* WXUNUSED(pItem)) { return false; }
|
||||
virtual long OS2OnMeasure(WXMEASUREITEMSTRUCT* WXUNUSED(pItem)) { return 0L; }
|
||||
|
||||
wxArrayLong& GetSubcontrols() { return m_aSubControls; }
|
||||
void OnEraseBackground(wxEraseEvent& rEvent);
|
||||
|
@@ -93,9 +93,9 @@ public:
|
||||
|
||||
// TODO: should this go into a wxFrameworkSettings class perhaps?
|
||||
static void UseNativeStatusBar(bool bUseNative)
|
||||
{ m_bUseNativeStatusBar = bUseNative; };
|
||||
{ m_bUseNativeStatusBar = bUseNative; }
|
||||
static bool UsesNativeStatusBar()
|
||||
{ return m_bUseNativeStatusBar; };
|
||||
{ return m_bUseNativeStatusBar; }
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
||||
WXHMENU GetWinMenu() const { return m_hMenu; }
|
||||
|
@@ -61,7 +61,7 @@ public:
|
||||
void SetValue(int nPos);
|
||||
|
||||
inline virtual bool AcceptsFocus(void) const { return FALSE; }
|
||||
inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {};
|
||||
inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {}
|
||||
|
||||
protected:
|
||||
int m_nRangeMax;
|
||||
|
@@ -54,7 +54,7 @@ public:
|
||||
{ m_nWidth = nW; m_nHeight = nH; }
|
||||
|
||||
// free the ressources we allocated
|
||||
virtual void Free() { };
|
||||
virtual void Free() { }
|
||||
|
||||
// for compatibility, the member fields are public
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
class WXDLLIMPEXP_CORE wxIconRefData: public wxIconRefDataBase
|
||||
{
|
||||
public:
|
||||
wxIconRefData() { };
|
||||
wxIconRefData() { }
|
||||
virtual ~wxIconRefData() { Free(); }
|
||||
|
||||
virtual void Free();
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
inline void SetHICON(WXHICON hIcon) { SetHandle((WXHANDLE)hIcon); }
|
||||
inline WXHICON GetHICON() const { return (WXHICON)GetHandle(); }
|
||||
inline bool IsXpm(void) const { return m_bIsXpm; };
|
||||
inline bool IsXpm(void) const { return m_bIsXpm; }
|
||||
inline const wxBitmap& GetXpmSrc(void) const { return m_vXpmSrc; }
|
||||
|
||||
void CopyFromBitmap(const wxBitmap& rBmp);
|
||||
|
@@ -107,15 +107,15 @@ private:
|
||||
m_strPath; // the rest of the path (no trailing '_'!)
|
||||
// Virtual function hiding
|
||||
virtual bool Read(const wxString& key, bool* val) const
|
||||
{ return(wxConfigBase::Read(key, val));};
|
||||
{ return(wxConfigBase::Read(key, val));}
|
||||
virtual bool Read(const wxString& key, bool* val, bool defVal) const
|
||||
{ return(wxConfigBase::Read(key, val, defVal));};
|
||||
{ return(wxConfigBase::Read(key, val, defVal));}
|
||||
virtual bool Write(const wxString& key, double value)
|
||||
{ return(wxConfigBase::Write(key, value));};
|
||||
{ return(wxConfigBase::Write(key, value));}
|
||||
virtual bool Write(const wxString& key, bool value)
|
||||
{ return(wxConfigBase::Write(key, value));};
|
||||
{ return(wxConfigBase::Write(key, value));}
|
||||
virtual bool Write(const wxString& key, const char* value)
|
||||
{ return(wxConfigBase::Write(key, value));};
|
||||
{ return(wxConfigBase::Write(key, value));}
|
||||
};
|
||||
|
||||
#endif //_INICONF_H
|
||||
|
@@ -22,7 +22,7 @@ class WXDLLIMPEXP_ADV wxJoystick: public wxObject
|
||||
* Public interface
|
||||
*/
|
||||
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; };
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }
|
||||
|
||||
// Attributes
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -172,7 +172,7 @@ class WXDLLIMPEXP_CORE wxMetafileDataObject : public wxDataObject
|
||||
{
|
||||
public:
|
||||
// ctors
|
||||
wxMetafileDataObject() { m_width = 0; m_height = 0; };
|
||||
wxMetafileDataObject() { m_width = 0; m_height = 0; }
|
||||
wxMetafileDataObject(const wxMetafile& metafile, int width = 0,int height = 0)
|
||||
:m_metafile(metafile)
|
||||
,m_width(width)
|
||||
|
@@ -21,7 +21,7 @@ public:
|
||||
m_sName = "PNG bitmap file";
|
||||
m_sExtension = "bmp";
|
||||
m_lType = wxBITMAP_TYPE_PNG;
|
||||
};
|
||||
}
|
||||
|
||||
virtual bool LoadFile( wxBitmap* pBitmap
|
||||
,const wxString& rName
|
||||
|
@@ -62,10 +62,10 @@ public:
|
||||
bool ReadFile( wxChar* ImageFileName=0 );
|
||||
bool SaveFile( wxChar* ImageFileName=0 );
|
||||
bool SaveXPM(wxChar *filename, wxChar *name = 0);
|
||||
int GetWidth( void ) const { return Width; };
|
||||
int GetHeight( void ) const { return Height; };
|
||||
int GetDepth( void ) const { return Depth; };
|
||||
int GetColorType( void ) const { return ColorType; };
|
||||
int GetWidth( void ) const { return Width; }
|
||||
int GetHeight( void ) const { return Height; }
|
||||
int GetDepth( void ) const { return Depth; }
|
||||
int GetColorType( void ) const { return ColorType; }
|
||||
|
||||
int GetIndex(int x, int y);
|
||||
bool GetRGB(int x, int y, byte* r, byte* g, byte* b);
|
||||
|
@@ -150,7 +150,7 @@ public:
|
||||
inline void SetButtonFont(const wxFont& rFont) { SetFont(rFont); }
|
||||
void SetFocus(void);
|
||||
virtual bool SetFont(const wxFont& rFont);
|
||||
inline void SetLabelFont(const wxFont& WXUNUSED(font)) {};
|
||||
inline void SetLabelFont(const wxFont& WXUNUSED(font)) {}
|
||||
virtual void SetSelection(int nIndex);
|
||||
virtual void SetString(unsigned int nNum, const wxString& rsLabel);
|
||||
virtual bool SetStringSelection(const wxString& rsStr);
|
||||
|
@@ -29,7 +29,7 @@ public:
|
||||
// Create from data
|
||||
bool Create(size_t size, const void* data);
|
||||
|
||||
bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
|
||||
bool IsOk() const { return (m_waveData ? TRUE : FALSE); }
|
||||
|
||||
protected:
|
||||
bool Free();
|
||||
|
@@ -43,7 +43,7 @@ class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
|
||||
inline virtual ~wxStaticBitmap() { Free(); }
|
||||
|
||||
virtual void SetIcon(const wxIcon& rIcon) { SetImage(rIcon); }
|
||||
virtual void SetBitmap(const wxBitmap& rBitmap) { SetImage(rBitmap); };
|
||||
virtual void SetBitmap(const wxBitmap& rBitmap) { SetImage(rBitmap); }
|
||||
|
||||
// assert failure is provoked by an attempt to get an icon from bitmap or
|
||||
// vice versa
|
||||
|
@@ -586,7 +586,7 @@ private:
|
||||
,int nImage
|
||||
,int nImageSel
|
||||
);
|
||||
void DeleteTextCtrl() { };
|
||||
void DeleteTextCtrl() { }
|
||||
|
||||
//
|
||||
// support for additional item images which we implement using
|
||||
|
@@ -118,7 +118,7 @@ public:
|
||||
);
|
||||
|
||||
inline HWND GetScrollBarHorz(void) const {return m_hWndScrollBarHorz;}
|
||||
inline HWND GetScrollBarVert(void) const {return m_hWndScrollBarVert;};
|
||||
inline HWND GetScrollBarVert(void) const {return m_hWndScrollBarVert;}
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget(wxDropTarget* pDropTarget);
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
);
|
||||
|
||||
// PM only: true if this control is part of the main control
|
||||
virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return false; };
|
||||
virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return false; }
|
||||
|
||||
// translate wxWidgets style flags for this control into the PM style
|
||||
// and optional extended style for the corresponding native control
|
||||
|
@@ -39,8 +39,8 @@ class WXDLLIMPEXP_CORE wxStaticBitmap: public wxStaticBitmapBase
|
||||
|
||||
virtual void SetBitmap(const wxBitmap& bitmap);
|
||||
|
||||
virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
|
||||
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
|
||||
virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
|
||||
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
|
||||
void OnPaint( wxPaintEvent &event ) ;
|
||||
|
||||
wxBitmap GetBitmap() const { return m_bitmap; }
|
||||
|
@@ -42,10 +42,10 @@ public:
|
||||
|
||||
bool operator != (const wxColour& colour) const { return !(*this == colour); }
|
||||
|
||||
CGColorRef GetPixel() const { return m_cgColour; };
|
||||
CGColorRef GetPixel() const { return m_cgColour; }
|
||||
|
||||
CGColorRef GetCGColor() const { return m_cgColour; };
|
||||
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
|
||||
CGColorRef GetCGColor() const { return m_cgColour; }
|
||||
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); }
|
||||
|
||||
#if wxOSX_USE_COCOA_OR_CARBON
|
||||
void GetRGBColor( RGBColor *col ) const;
|
||||
|
@@ -680,10 +680,10 @@ public :
|
||||
|
||||
virtual ~wxComboWidgetImpl() {}
|
||||
|
||||
virtual int GetSelectedItem() const { return -1; };
|
||||
virtual void SetSelectedItem(int WXUNUSED(item)) {};
|
||||
virtual int GetSelectedItem() const { return -1; }
|
||||
virtual void SetSelectedItem(int WXUNUSED(item)) {}
|
||||
|
||||
virtual int GetNumberOfItems() const { return -1; };
|
||||
virtual int GetNumberOfItems() const { return -1; }
|
||||
|
||||
virtual void InsertItem(int WXUNUSED(pos), const wxString& WXUNUSED(item)) {}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ class WXDLLIMPEXP_ADV wxJoystick: public wxObject
|
||||
* Public interface
|
||||
*/
|
||||
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; };
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }
|
||||
|
||||
// Attributes
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -314,10 +314,10 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
|
||||
bool Update(long item);
|
||||
*/
|
||||
|
||||
void Command(wxCommandEvent& event) { ProcessCommand(event); };
|
||||
void Command(wxCommandEvent& event) { ProcessCommand(event); }
|
||||
|
||||
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
||||
wxIntPtr GetCompareFuncData() { return m_compareFuncData; };
|
||||
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; }
|
||||
wxIntPtr GetCompareFuncData() { return m_compareFuncData; }
|
||||
|
||||
|
||||
// public overrides needed for pimpl approach
|
||||
|
@@ -145,7 +145,7 @@ class WXDLLIMPEXP_CORE wxMetafileDataObject : public wxDataObjectSimple
|
||||
public:
|
||||
// ctors
|
||||
wxMetafileDataObject()
|
||||
: wxDataObjectSimple(wxDF_METAFILE) { };
|
||||
: wxDataObjectSimple(wxDF_METAFILE) { }
|
||||
wxMetafileDataObject(const wxMetafile& metafile)
|
||||
: wxDataObjectSimple(wxDF_METAFILE), m_metafile(metafile) { }
|
||||
|
||||
|
@@ -25,7 +25,7 @@ public:
|
||||
SetName(wxT("PNG bitmap file"));
|
||||
SetExtension(wxT("bmp"));
|
||||
SetType(wxBITMAP_TYPE_PNG);
|
||||
};
|
||||
}
|
||||
|
||||
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
||||
int desiredWidth, int desiredHeight);
|
||||
|
@@ -61,10 +61,10 @@ public:
|
||||
bool ReadFile( char* ImageFileName=0 );
|
||||
bool SaveFile( char* ImageFileName=0 );
|
||||
bool SaveXPM(char *filename, char *name = 0);
|
||||
int GetWidth( void ) const { return Width; };
|
||||
int GetHeight( void ) const { return Height; };
|
||||
int GetDepth( void ) const { return Depth; };
|
||||
int GetColorType( void ) const { return ColorType; };
|
||||
int GetWidth( void ) const { return Width; }
|
||||
int GetHeight( void ) const { return Height; }
|
||||
int GetDepth( void ) const { return Depth; }
|
||||
int GetColorType( void ) const { return ColorType; }
|
||||
|
||||
int GetIndex(int x, int y);
|
||||
bool GetRGB(int x, int y, byte* r, byte* g, byte* b);
|
||||
|
@@ -38,8 +38,8 @@ class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
|
||||
long style = 0,
|
||||
const wxString& name = wxStaticBoxNameStr);
|
||||
|
||||
virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
|
||||
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
|
||||
virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
|
||||
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
|
||||
|
||||
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
||||
|
||||
|
@@ -225,7 +225,7 @@ public:
|
||||
bool SortChildren(long item);
|
||||
bool EnsureVisible(long item);
|
||||
|
||||
void Command(wxCommandEvent& event) { ProcessCommand(event); };
|
||||
void Command(wxCommandEvent& event) { ProcessCommand(event); }
|
||||
|
||||
protected:
|
||||
wxTextCtrl* m_textCtrl;
|
||||
|
@@ -93,7 +93,7 @@ public:
|
||||
void SetCurrent();
|
||||
|
||||
#ifdef __WXUNIVERSAL__
|
||||
virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); };
|
||||
virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); }
|
||||
#endif
|
||||
|
||||
void SetColour(const wxChar *colour);
|
||||
|
@@ -62,7 +62,7 @@ public:
|
||||
virtual wxMDIClientWindow *OnCreateClient(void);
|
||||
|
||||
// MDI windows menu
|
||||
wxMenu* GetWindowMenu() const { return m_windowMenu; };
|
||||
wxMenu* GetWindowMenu() const { return m_windowMenu; }
|
||||
void SetWindowMenu(wxMenu* menu) ;
|
||||
|
||||
// MDI operations
|
||||
|
@@ -104,20 +104,20 @@ public:
|
||||
void SetJoin(wxPenJoin join);
|
||||
void SetCap(wxPenCap cap);
|
||||
|
||||
wxColour& GetColour() const { return (M_PENDATA ? M_PENDATA->m_colour : wxNullColour); };
|
||||
int GetWidth() const { return (M_PENDATA ? M_PENDATA->m_width : 0); };
|
||||
wxPenStyle GetStyle() const { return (M_PENDATA ? M_PENDATA->m_style : 0); };
|
||||
wxPenJoin GetJoin() const { return (M_PENDATA ? M_PENDATA->m_join : 0); };
|
||||
wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); };
|
||||
wxColour& GetColour() const { return (M_PENDATA ? M_PENDATA->m_colour : wxNullColour); }
|
||||
int GetWidth() const { return (M_PENDATA ? M_PENDATA->m_width : 0); }
|
||||
wxPenStyle GetStyle() const { return (M_PENDATA ? M_PENDATA->m_style : 0); }
|
||||
wxPenJoin GetJoin() const { return (M_PENDATA ? M_PENDATA->m_join : 0); }
|
||||
wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); }
|
||||
int GetDashes(wxDash **ptr) const
|
||||
{
|
||||
*ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL);
|
||||
return (M_PENDATA ? M_PENDATA->m_nbDash : 0);
|
||||
}
|
||||
wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); };
|
||||
inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); };
|
||||
wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); }
|
||||
inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); }
|
||||
|
||||
inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); };
|
||||
inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); }
|
||||
|
||||
// Internal
|
||||
bool RealizeResource();
|
||||
|
@@ -120,7 +120,7 @@ public:
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
|
||||
void SetFocus();
|
||||
void SetLabelFont(const wxFont& WXUNUSED(font)) {};
|
||||
void SetLabelFont(const wxFont& WXUNUSED(font)) {}
|
||||
void SetButtonFont(const wxFont& font) { SetFont(font); }
|
||||
|
||||
virtual void Refresh( bool eraseBackground = true,
|
||||
|
@@ -30,7 +30,7 @@ public:
|
||||
// Create from data
|
||||
bool Create(size_t size, const void* data);
|
||||
|
||||
bool IsOk() const { return (m_waveData ? true : false); };
|
||||
bool IsOk() const { return (m_waveData ? true : false); }
|
||||
|
||||
static void Stop();
|
||||
|
||||
|
@@ -139,7 +139,7 @@ public:
|
||||
wxWindow *FindItemByWinHandle(WXWINHANDLE handle, bool controlOnly = false) const;
|
||||
|
||||
// Palm only: true if this control is part of the main control
|
||||
virtual bool ContainsWinHandle(WXWINHANDLE WXUNUSED(handle)) const { return false; };
|
||||
virtual bool ContainsWinHandle(WXWINHANDLE WXUNUSED(handle)) const { return false; }
|
||||
|
||||
// translate wxWidgets style flags for this control into the Windows style
|
||||
// and optional extended style for the corresponding native control
|
||||
|
@@ -966,7 +966,7 @@ public:
|
||||
}
|
||||
|
||||
/** Gets a unsigned number identifying this list. */
|
||||
wxPGChoicesId GetId() const { return (wxPGChoicesId) m_data; };
|
||||
wxPGChoicesId GetId() const { return (wxPGChoicesId) m_data; }
|
||||
|
||||
const wxString& GetLabel( unsigned int ind ) const
|
||||
{
|
||||
|
@@ -172,6 +172,11 @@ typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxImagePixelFormat;
|
||||
// Under GTK+ 2.X we use GdkPixbuf, which is standard RGB or RGBA
|
||||
typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxNativePixelFormat;
|
||||
|
||||
#define wxPIXEL_FORMAT_ALPHA 3
|
||||
#elif defined(__WXPM__)
|
||||
// Under PM, we can use standard RGB or RGBA
|
||||
typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxNativePixelFormat;
|
||||
|
||||
#define wxPIXEL_FORMAT_ALPHA 3
|
||||
#elif defined(__WXDFB__)
|
||||
// Under DirectFB, RGB components are reversed, they're in BGR order
|
||||
|
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
wxString GetDetailedText() const { return m_detailedText; }
|
||||
|
||||
virtual bool IsCheckBoxChecked() const { return m_checkBoxValue; };
|
||||
virtual bool IsCheckBoxChecked() const { return m_checkBoxValue; }
|
||||
|
||||
protected:
|
||||
const wxString m_detailsExpanderCollapsedLabel;
|
||||
|
@@ -32,7 +32,7 @@ public:
|
||||
#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
|
||||
static bool IsAvailable();
|
||||
#else
|
||||
static bool IsAvailable() { return true; };
|
||||
static bool IsAvailable() { return true; }
|
||||
#endif
|
||||
|
||||
// Operations:
|
||||
|
@@ -20,7 +20,7 @@ class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
|
||||
public:
|
||||
wxAnyButton() {}
|
||||
|
||||
virtual ~wxAnyButton() {};
|
||||
virtual ~wxAnyButton() {}
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
|
@@ -117,7 +117,7 @@ public:
|
||||
|
||||
wxPalette *GetPalette() const;
|
||||
wxPalette *GetColourMap() const
|
||||
{ return GetPalette(); };
|
||||
{ return GetPalette(); }
|
||||
virtual void SetPalette(const wxPalette& palette);
|
||||
|
||||
// implementation
|
||||
|
@@ -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
|
||||
|
@@ -22,7 +22,7 @@ public:
|
||||
* Public interface
|
||||
*/
|
||||
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; };
|
||||
wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }
|
||||
|
||||
// Attributes
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user