aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-12-26 14:26:12 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:42 +0100
commit396d1c86bf39cd734566ff645bca401f50942aaa (patch)
tree975ad7a1e3d0007283251e4e7e345392928f1051 /src/menu
parentadaf1a1130ac2a6523ab9b6787045d953eeefc4d (diff)
downloadusdx-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 'src/menu')
-rw-r--r--src/menu/menuBackground.hpp10
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