summaryrefslogtreecommitdiff
path: root/src/mainmenumanager.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-06-17 19:11:28 +0200
committerGitHub <noreply@github.com>2017-06-17 19:11:28 +0200
commit8f7785771b9e02b1a1daf7a252550d78ea93053d (patch)
tree7a4e4b524dbc63fed3dac99a3844b634cc621d0d /src/mainmenumanager.h
parent76be103a91d6987527af19e87d93007be8ba8a67 (diff)
downloadminetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.tar.gz
minetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.tar.bz2
minetest-8f7785771b9e02b1a1daf7a252550d78ea93053d.zip
Cpp11 initializers 2 (#5999)
* C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
Diffstat (limited to 'src/mainmenumanager.h')
-rw-r--r--src/mainmenumanager.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/mainmenumanager.h b/src/mainmenumanager.h
index fb715ca9b..b9bd3762b 100644
--- a/src/mainmenumanager.h
+++ b/src/mainmenumanager.h
@@ -125,12 +125,6 @@ class MainGameCallback : public IGameCallback
{
public:
MainGameCallback(IrrlichtDevice *a_device):
- disconnect_requested(false),
- changepassword_requested(false),
- changevolume_requested(false),
- keyconfig_requested(false),
- shutdown_requested(false),
- keyconfig_changed(false),
device(a_device)
{
}
@@ -169,13 +163,13 @@ public:
}
- bool disconnect_requested;
- bool changepassword_requested;
- bool changevolume_requested;
- bool keyconfig_requested;
- bool shutdown_requested;
+ bool disconnect_requested = false;
+ bool changepassword_requested = false;
+ bool changevolume_requested = false;
+ bool keyconfig_requested = false;
+ bool shutdown_requested = false;
- bool keyconfig_changed;
+ bool keyconfig_changed = false;
IrrlichtDevice *device;
};