diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-06 20:57:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-06 22:58:35 +0300 |
commit | 4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f (patch) | |
tree | a776928bb1339cdd29eb2e54d50eb3fa6e3448d7 /src/gui/gui.cpp | |
parent | 22ed653d8b630c813333d5c73a4ca02dede2a5a5 (diff) | |
download | manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.gz manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.bz2 manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.xz manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index ae2c38d15..237c867bf 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -74,7 +74,9 @@ class GuiConfigListener : public ConfigListener Gui *mGui; }; -Gui::Gui(Graphics *const graphics): +Gui::Gui(Graphics *const graphics) : + gcn::Gui(), + mConfigListener(new GuiConfigListener(this)), mCustomCursor(false), mMouseCursors(nullptr), mMouseCursorAlpha(1.0f), @@ -218,7 +220,6 @@ Gui::Gui(Graphics *const graphics): // Initialize mouse cursor and listen for changes to the option setUseCustomCursor(config.getBoolValue("customcursor")); - mConfigListener = new GuiConfigListener(this); config.addListener("customcursor", mConfigListener); } |