diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-05 10:13:15 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-06 21:49:14 +0000 |
commit | 3ce39d2b497ab5356290a22b324181386af51c51 (patch) | |
tree | 1b923b8be7e4d2ce8ff70768dc7fff596487935c /src/gui/charselectdialog.h | |
parent | a9df89bda908e3b3d443db7f3ca865b6f12c75e5 (diff) | |
download | Mana-3ce39d2b497ab5356290a22b324181386af51c51.tar.gz Mana-3ce39d2b497ab5356290a22b324181386af51c51.tar.bz2 Mana-3ce39d2b497ab5356290a22b324181386af51c51.tar.xz Mana-3ce39d2b497ab5356290a22b324181386af51c51.zip |
General code cleanups
* Use final for all message handlers, Client, LocalPlayer,
Being::getType, Being::setPosition and Being::setMap.
(avoids some warnings about virtual dispatch in constructors)
* Use auto in more places
* Use emplace_back instead of push_back in some places
* Use default member initializers
* Less else after return
* Removed superfluous .c_str()
* Removed type aliases that are only used once
* Removed more unused includes
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r-- | src/gui/charselectdialog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h index d30e4e68..2deb5a7d 100644 --- a/src/gui/charselectdialog.h +++ b/src/gui/charselectdialog.h @@ -84,14 +84,14 @@ class CharSelectDialog : public Window, public gcn::ActionListener, void unlock(); void setLocked(bool locked); - bool mLocked; + bool mLocked = false; gcn::Label *mAccountNameLabel; gcn::Button *mSwitchLoginButton; gcn::Button *mChangePasswordButton; - gcn::Button *mUnregisterButton; - gcn::Button *mChangeEmailButton; + gcn::Button *mUnregisterButton = nullptr; + gcn::Button *mChangeEmailButton = nullptr; /** The player boxes */ std::vector<CharacterDisplay*> mCharacterEntries; |