summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 13:29:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commite994c01cab6fc45e54396641c5fd9fa509cfe0d6 (patch)
tree8fe8f322c8a8d7f6ecdab5796ab9ca1dbb1a3e82 /src/gui/gui.cpp
parent0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e (diff)
downloadplus-e994c01cab6fc45e54396641c5fd9fa509cfe0d6.tar.gz
plus-e994c01cab6fc45e54396641c5fd9fa509cfe0d6.tar.bz2
plus-e994c01cab6fc45e54396641c5fd9fa509cfe0d6.tar.xz
plus-e994c01cab6fc45e54396641c5fd9fa509cfe0d6.zip
move virtual member calls from gui constuctor into postInit.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 18cc061b2..d32e81fe8 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -82,7 +82,7 @@ class GuiConfigListener final : public ConfigListener
Gui *mGui;
};
-Gui::Gui(Graphics *const graphics) :
+Gui::Gui() :
gcn::Gui(),
mConfigListener(new GuiConfigListener(this)),
mGuiFont(),
@@ -104,6 +104,10 @@ Gui::Gui(Graphics *const graphics) :
mCustomCursor(false),
mDoubleClick(true)
{
+}
+
+void Gui::postInit(Graphics *const graphics)
+{
logger->log1("Initializing GUI...");
// Set graphics
setGraphics(graphics);