diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-12-30 19:14:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-30 19:14:36 +0100 |
| commit | 44c874b731f9f58c2f50c3c6076371058cbe26e3 (patch) | |
| tree | 2386dfcc700c41a1109fc78b96875c11056abcc9 /test/sudoku.cxx | |
| parent | f58a93a159105336136ce6e54ab7fc161e4fa15a (diff) | |
Use `FL_OVERRIDE` for all overridden virtual methods (#611)
FL_OVERRIDE is defined as `override` for C++11 and higher
FL_OVERRIDE is defined as `override` for VisualC 2015 and newer
Don't interfere with Fl_Widget::override()
Diffstat (limited to 'test/sudoku.cxx')
| -rw-r--r-- | test/sudoku.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sudoku.cxx b/test/sudoku.cxx index d7b856bc7..97766ac2f 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -140,8 +140,8 @@ class SudokuCell : public Fl_Widget { public: SudokuCell(int X, int Y, int W, int H); - void draw(); - int handle(int event); + void draw() FL_OVERRIDE; + int handle(int event) FL_OVERRIDE; void readonly(bool r) { readonly_ = r; redraw(); } bool readonly() const { return readonly_; } void test_value(int v, int n) { test_value_[n] = v; redraw(); } @@ -189,7 +189,7 @@ class Sudoku : public Fl_Double_Window { void load_game(); void new_game(time_t seed); int next_value(SudokuCell *c); - void resize(int X, int Y, int W, int H); + void resize(int X, int Y, int W, int H) FL_OVERRIDE; void save_game(); void solve_game(); void update_helpers(); |
