Fix extra semicolon warnings

This commit is contained in:
Maarten Bent
2018-11-25 20:22:55 +01:00
parent eb23d4735c
commit bcf53d6b96
27 changed files with 58 additions and 58 deletions

View File

@@ -27,17 +27,17 @@ public:
{ {
m_width = m_height = 0; m_width = m_height = 0;
m_field = NULL; m_field = NULL;
}; }
~BombsGame(); ~BombsGame();
int GetWidth() const { return m_width; }; int GetWidth() const { return m_width; }
int GetHeight() const { return m_height; }; int GetHeight() const { return m_height; }
int Get(int x, int y) const int Get(int x, int y) const
{ {
return m_field[x+y*m_width]; return m_field[x+y*m_width];
}; }
int IsFocussed(int x, int y) const int IsFocussed(int x, int y) const
{ {
@@ -47,42 +47,42 @@ public:
int IsHidden(int x, int y) const int IsHidden(int x, int y) const
{ {
return Get(x,y) & BG_HIDDEN; return Get(x,y) & BG_HIDDEN;
}; }
int IsMarked(int x, int y) const int IsMarked(int x, int y) const
{ {
return Get(x,y) & BG_MARKED; return Get(x,y) & BG_MARKED;
}; }
int IsBomb(int x, int y) const int IsBomb(int x, int y) const
{ {
return Get(x,y) & BG_BOMB; return Get(x,y) & BG_BOMB;
}; }
int IsExploded(int x, int y) const int IsExploded(int x, int y) const
{ {
return Get(x,y) & BG_EXPLODED; return Get(x,y) & BG_EXPLODED;
}; }
int IsSelected(int x, int y) const int IsSelected(int x, int y) const
{ {
return Get(x,y) & BG_SELECTED; return Get(x,y) & BG_SELECTED;
}; }
int GetNumBombs() const int GetNumBombs() const
{ {
return m_numBombCells; return m_numBombCells;
}; }
int GetNumRemainingCells() const int GetNumRemainingCells() const
{ {
return m_numRemainingCells; return m_numRemainingCells;
}; }
int GetNumMarkedCells() const int GetNumMarkedCells() const
{ {
return m_numMarkedCells; return m_numMarkedCells;
}; }
bool Init(int width, int height, bool easyCorner = false); bool Init(int width, int height, bool easyCorner = false);

View File

@@ -43,7 +43,7 @@ class Card {
public: public:
Card(int value, WayUp way_up = facedown); Card(int value, WayUp way_up = facedown);
virtual ~Card(){}; virtual ~Card(){}
void Draw(wxDC& pDC, int x, int y); void Draw(wxDC& pDC, int x, int y);
static void DrawNullCard(wxDC& pDC, int x, int y); // Draw card place-holder static void DrawNullCard(wxDC& pDC, int x, int y); // Draw card place-holder
@@ -55,9 +55,9 @@ public:
Suit GetSuit() const { return m_suit; } Suit GetSuit() const { return m_suit; }
SuitColour GetColour() const { return m_colour; } SuitColour GetColour() const { return m_colour; }
static void SetScale(double scale); static void SetScale(double scale);
static int GetHeight() { return m_height; }; static int GetHeight() { return m_height; }
static int GetWidth() { return m_width; }; static int GetWidth() { return m_width; }
static double GetScale() { return m_scale; }; static double GetScale() { return m_scale; }
private: private:
Suit m_suit; Suit m_suit;

View File

@@ -38,7 +38,7 @@ class FortyFrame: public wxFrame
{ {
public: public:
FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards); FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards);
virtual ~FortyFrame(){}; virtual ~FortyFrame(){}
void OnCloseWindow(wxCloseEvent& event); void OnCloseWindow(wxCloseEvent& event);

View File

@@ -41,7 +41,7 @@ const int NumCards = 2 * PackSize;
class Pile { class Pile {
public: public:
Pile(int x, int y, int dx = 0, int dy = 0); Pile(int x, int y, int dx = 0, int dy = 0);
virtual ~Pile(){}; virtual ~Pile(){}
// General functions // General functions
virtual void ResetPile() { m_topCard = -1; } virtual void ResetPile() { m_topCard = -1; }
@@ -68,7 +68,7 @@ public:
virtual bool AcceptCard(Card*) { return false; } virtual bool AcceptCard(Card*) { return false; }
virtual void AddCard(Card* card); // Add card to top of pile virtual void AddCard(Card* card); // Add card to top of pile
virtual void AddCard(wxDC& pDC, Card* card); // Add card + redraw it virtual void AddCard(wxDC& pDC, Card* card); // Add card + redraw it
void SetPos(int x,int y) {m_x = x;m_y = y;}; void SetPos(int x,int y) {m_x = x;m_y = y;}
protected: protected:
int m_x, m_y; // Position of the pile on the screen int m_x, m_y; // Position of the pile on the screen

View File

@@ -16,7 +16,7 @@ class PlayerSelectionDialog : public wxDialog
{ {
public: public:
PlayerSelectionDialog(wxWindow* parent, ScoreFile* file); PlayerSelectionDialog(wxWindow* parent, ScoreFile* file);
virtual ~PlayerSelectionDialog(){}; virtual ~PlayerSelectionDialog(){}
const wxString& GetPlayersName(); const wxString& GetPlayersName();
void ButtonCallback(wxCommandEvent& event); void ButtonCallback(wxCommandEvent& event);

View File

@@ -16,7 +16,7 @@ class ScoreDialog : public wxDialog
{ {
public: public:
ScoreDialog(wxWindow* parent, ScoreFile* file); ScoreDialog(wxWindow* parent, ScoreFile* file);
virtual ~ScoreDialog(){}; virtual ~ScoreDialog(){}
void Display(); void Display();

View File

@@ -925,7 +925,7 @@ class LifeModule: public wxModule
wxDECLARE_DYNAMIC_CLASS(LifeModule); wxDECLARE_DYNAMIC_CLASS(LifeModule);
public: public:
LifeModule() {}; LifeModule() {}
bool OnInit() wxOVERRIDE; bool OnInit() wxOVERRIDE;
void OnExit() wxOVERRIDE; void OnExit() wxOVERRIDE;
}; };

View File

@@ -29,7 +29,7 @@ public:
m_description = description; m_description = description;
m_rules = rules; m_rules = rules;
m_shape = shape; m_shape = shape;
}; }
// A more convenient ctor for the built-in samples // A more convenient ctor for the built-in samples
LifePattern(wxString name, LifePattern(wxString name,
@@ -58,7 +58,7 @@ public:
m_shape.Add( tmp ); m_shape.Add( tmp );
} }
}; }
wxString m_name; wxString m_name;
wxString m_description; wxString m_description;
@@ -90,9 +90,9 @@ public:
~Life(); ~Life();
// accessors // accessors
inline wxUint32 GetNumCells() const { return m_numcells; }; inline wxUint32 GetNumCells() const { return m_numcells; }
inline wxString GetRules() const { return m_rules; }; inline wxString GetRules() const { return m_rules; }
inline wxString GetDescription() const { return m_description; }; inline wxString GetDescription() const { return m_description; }
bool IsAlive(wxInt32 x, wxInt32 y); bool IsAlive(wxInt32 x, wxInt32 y);
void SetCell(wxInt32 x, wxInt32 y, bool alive = true); void SetCell(wxInt32 x, wxInt32 y, bool alive = true);
void SetPattern(const LifePattern &pattern); void SetPattern(const LifePattern &pattern);

View File

@@ -31,7 +31,7 @@ public:
virtual ~LifeCanvas(); virtual ~LifeCanvas();
// view management // view management
int GetCellSize() const { return m_cellsize; }; int GetCellSize() const { return m_cellsize; }
void SetCellSize(int cellsize); void SetCellSize(int cellsize);
void Recenter(wxInt32 i, wxInt32 j); void Recenter(wxInt32 i, wxInt32 j);
@@ -54,10 +54,10 @@ private:
void OnEraseBackground(wxEraseEvent& event); void OnEraseBackground(wxEraseEvent& event);
// conversion between cell and screen coordinates // conversion between cell and screen coordinates
inline wxInt32 XToCell(wxCoord x) const { return (x / m_cellsize) + m_viewportX; }; inline wxInt32 XToCell(wxCoord x) const { return (x / m_cellsize) + m_viewportX; }
inline wxInt32 YToCell(wxCoord y) const { return (y / m_cellsize) + m_viewportY; }; inline wxInt32 YToCell(wxCoord y) const { return (y / m_cellsize) + m_viewportY; }
inline wxCoord CellToX(wxInt32 i) const { return (i - m_viewportX) * m_cellsize; }; inline wxCoord CellToX(wxInt32 i) const { return (i - m_viewportX) * m_cellsize; }
inline wxCoord CellToY(wxInt32 j) const { return (j - m_viewportY) * m_cellsize; }; inline wxCoord CellToY(wxInt32 j) const { return (j - m_viewportY) * m_cellsize; }
// what is the user doing? // what is the user doing?
enum MouseStatus enum MouseStatus

View File

@@ -22,14 +22,14 @@ class LifeReader
public: public:
LifeReader(wxInputStream& is); LifeReader(wxInputStream& is);
inline bool IsOk() const { return m_ok; }; inline bool IsOk() const { return m_ok; }
inline wxString GetDescription() const { return m_description; }; inline wxString GetDescription() const { return m_description; }
inline wxString GetRules() const { return m_rules; }; inline wxString GetRules() const { return m_rules; }
inline wxArrayString GetShape() const { return m_shape; }; inline wxArrayString GetShape() const { return m_shape; }
inline LifePattern GetPattern() const inline LifePattern GetPattern() const
{ {
return LifePattern(wxEmptyString, m_description, m_rules, m_shape); return LifePattern(wxEmptyString, m_description, m_rules, m_shape);
}; }
private: private:
bool m_ok; bool m_ok;

View File

@@ -409,7 +409,7 @@ class WXDLLIMPEXP_CORE wxDataViewCtrlAccessible: public wxWindowAccessible
{ {
public: public:
wxDataViewCtrlAccessible(wxDataViewCtrl* win); wxDataViewCtrlAccessible(wxDataViewCtrl* win);
virtual ~wxDataViewCtrlAccessible() {}; virtual ~wxDataViewCtrlAccessible() {}
virtual wxAccStatus HitTest(const wxPoint& pt, int* childId, virtual wxAccStatus HitTest(const wxPoint& pt, int* childId,
wxAccessible** childObject) wxOVERRIDE; wxAccessible** childObject) wxOVERRIDE;

View File

@@ -122,7 +122,7 @@ class DragShape: public wxObject
{ {
public: public:
DragShape(const wxBitmap& bitmap); DragShape(const wxBitmap& bitmap);
~DragShape(){}; ~DragShape(){}
//// Operations //// Operations

View File

@@ -78,7 +78,7 @@ public:
bool Connect(const wxString& sHost, const wxString& sService, const wxString& sTopic); bool Connect(const wxString& sHost, const wxString& sService, const wxString& sTopic);
void Disconnect(); void Disconnect();
wxConnectionBase *OnMakeConnection() wxOVERRIDE; wxConnectionBase *OnMakeConnection() wxOVERRIDE;
bool IsConnected() { return m_connection != NULL; }; bool IsConnected() { return m_connection != NULL; }
virtual void Notify() wxOVERRIDE; virtual void Notify() wxOVERRIDE;

View File

@@ -113,7 +113,7 @@ public:
MyServer(); MyServer();
virtual ~MyServer(); virtual ~MyServer();
void Disconnect(); void Disconnect();
bool IsConnected() { return m_connection != NULL; }; bool IsConnected() { return m_connection != NULL; }
virtual wxConnectionBase *OnAcceptConnection(const wxString& topic) wxOVERRIDE; virtual wxConnectionBase *OnAcceptConnection(const wxString& topic) wxOVERRIDE;

View File

@@ -31,7 +31,7 @@ class MyApp: public wxApp
public: public:
virtual bool OnInit() wxOVERRIDE; virtual bool OnInit() wxOVERRIDE;
virtual int OnExit() wxOVERRIDE; virtual int OnExit() wxOVERRIDE;
MyFrame *GetFrame() { return m_frame; }; MyFrame *GetFrame() { return m_frame; }
protected: protected:
MyFrame *m_frame; MyFrame *m_frame;
@@ -96,8 +96,8 @@ public:
bool Connect(const wxString& sHost, const wxString& sService, const wxString& sTopic); bool Connect(const wxString& sHost, const wxString& sService, const wxString& sTopic);
void Disconnect(); void Disconnect();
wxConnectionBase *OnMakeConnection() wxOVERRIDE; wxConnectionBase *OnMakeConnection() wxOVERRIDE;
bool IsConnected() { return m_connection != NULL; }; bool IsConnected() { return m_connection != NULL; }
MyConnection *GetConnection() { return m_connection; }; MyConnection *GetConnection() { return m_connection; }
protected: protected:
MyConnection *m_connection; MyConnection *m_connection;

View File

@@ -44,7 +44,7 @@ public:
MyCanvas *canvas; MyCanvas *canvas;
MyFrame(wxFrame *parent, const wxString& title, MyFrame(wxFrame *parent, const wxString& title,
const wxPoint& pos, const wxSize& size, const long style); const wxPoint& pos, const wxSize& size, const long style);
~MyFrame(){}; ~MyFrame(){}
void OnActivate(wxActivateEvent& event); void OnActivate(wxActivateEvent& event);
void OnQuit(wxCommandEvent& event); void OnQuit(wxCommandEvent& event);

View File

@@ -12,7 +12,7 @@
class MyApp: public wxApp class MyApp: public wxApp
{ {
public: public:
MyApp(){}; MyApp(){}
bool OnInit() wxOVERRIDE; bool OnInit() wxOVERRIDE;
}; };

View File

@@ -12,7 +12,7 @@
class MyApp: public wxApp class MyApp: public wxApp
{ {
public: public:
MyApp(void){}; MyApp(void){}
bool OnInit(void) wxOVERRIDE; bool OnInit(void) wxOVERRIDE;
}; };

View File

@@ -14,7 +14,7 @@
class MyApp: public wxApp class MyApp: public wxApp
{ {
public: public:
MyApp(){}; MyApp(){}
bool OnInit() wxOVERRIDE; bool OnInit() wxOVERRIDE;
}; };

View File

@@ -40,7 +40,7 @@ class OwnerDrawnFrame : public wxFrame
public: public:
// ctor & dtor // ctor & dtor
OwnerDrawnFrame(wxFrame *frame, const wxString& title, int x, int y, int w, int h); OwnerDrawnFrame(wxFrame *frame, const wxString& title, int x, int y, int w, int h);
~OwnerDrawnFrame(){}; ~OwnerDrawnFrame(){}
// notifications // notifications
void OnQuit (wxCommandEvent& event); void OnQuit (wxCommandEvent& event);

View File

@@ -151,7 +151,7 @@ class MyCanvas: public wxScrolledWindow
{ {
public: public:
MyCanvas(wxWindow* parent, bool mirror); MyCanvas(wxWindow* parent, bool mirror);
virtual ~MyCanvas(){}; virtual ~MyCanvas(){}
virtual void OnDraw(wxDC& dc) wxOVERRIDE; virtual void OnDraw(wxDC& dc) wxOVERRIDE;

View File

@@ -112,7 +112,7 @@ public:
wxString DeterminePrefs (const wxString &filename); wxString DeterminePrefs (const wxString &filename);
bool InitializePrefs (const wxString &filename); bool InitializePrefs (const wxString &filename);
bool UserSettings (const wxString &filename); bool UserSettings (const wxString &filename);
LanguageInfo const* GetLanguageInfo () {return m_language;}; LanguageInfo const* GetLanguageInfo () {return m_language;}
//! load/save file //! load/save file
bool LoadFile (); bool LoadFile ();
@@ -120,8 +120,8 @@ public:
bool SaveFile (); bool SaveFile ();
bool SaveFile (const wxString &filename); bool SaveFile (const wxString &filename);
bool Modified (); bool Modified ();
wxString GetFilename () {return m_filename;}; wxString GetFilename () {return m_filename;}
void SetFilename (const wxString &filename) {m_filename = filename;}; void SetFilename (const wxString &filename) {m_filename = filename;}
private: private:
// file // file

View File

@@ -66,7 +66,7 @@ class MyApp : public wxApp
{ {
public: public:
MyApp(); MyApp();
virtual ~MyApp(){}; virtual ~MyApp(){}
virtual bool OnInit() wxOVERRIDE; virtual bool OnInit() wxOVERRIDE;

View File

@@ -67,7 +67,7 @@ public:
MyTreeCtrl(wxWindow *parent, const wxWindowID id, MyTreeCtrl(wxWindow *parent, const wxWindowID id,
const wxPoint& pos, const wxSize& size, const wxPoint& pos, const wxSize& size,
long style); long style);
virtual ~MyTreeCtrl(){}; virtual ~MyTreeCtrl(){}
void OnBeginDrag(wxTreeEvent& event); void OnBeginDrag(wxTreeEvent& event);
void OnBeginRDrag(wxTreeEvent& event); void OnBeginRDrag(wxTreeEvent& event);

View File

@@ -60,7 +60,7 @@ public:
); );
// Destructor. // Destructor.
~MyResizableListCtrl(){}; ~MyResizableListCtrl(){}
protected: protected:

View File

@@ -36,7 +36,7 @@ public:
PreferencesDialog( wxWindow* parent ); PreferencesDialog( wxWindow* parent );
// Destructor. // Destructor.
~PreferencesDialog(){}; ~PreferencesDialog(){}
private: private:

View File

@@ -67,7 +67,7 @@ public:
{ {
m_catchwin = win; m_catchwin = win;
m_polling = pollingFreq; m_polling = pollingFreq;
}; }
private: private: