diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-26 14:26:12 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:42 +0100 |
commit | 396d1c86bf39cd734566ff645bca401f50942aaa (patch) | |
tree | 975ad7a1e3d0007283251e4e7e345392928f1051 | |
parent | adaf1a1130ac2a6523ab9b6787045d953eeefc4d (diff) | |
download | usdx-396d1c86bf39cd734566ff645bca401f50942aaa.tar.gz usdx-396d1c86bf39cd734566ff645bca401f50942aaa.tar.xz usdx-396d1c86bf39cd734566ff645bca401f50942aaa.zip |
refactor MenuBackgrund base class
changed on_show, on_finish and deconstructor to optional implementations
with empty implementations instead of pure virtual functions in base class
Diffstat (limited to '')
-rw-r--r-- | src/menu/menuBackground.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/menu/menuBackground.hpp b/src/menu/menuBackground.hpp index e242080e..9f3e76fa 100644 --- a/src/menu/menuBackground.hpp +++ b/src/menu/menuBackground.hpp @@ -36,13 +36,13 @@ namespace usdx class MenuBackground { public: - // all members are pure virtual - virtual ~MenuBackground() = 0; + virtual void draw(void) = 0; - virtual void on_show(void) = 0; - virtual void on_finish(void) = 0; + // optional methods + virtual ~MenuBackground() {} - virtual void draw(void) = 0; + virtual void on_show(void) {} + virtual void on_finish(void) {} protected: // no copy and no assignment |