1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Cpp11 initializers: last src root changeset (#6022)

* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
This commit is contained in:
Loïc Blot 2017-06-21 11:51:29 +02:00 committed by GitHub
parent 12aad731ad
commit 1425c6def1
20 changed files with 127 additions and 223 deletions

View file

@ -52,13 +52,7 @@ class TerminalChatConsole : public Thread {
public:
TerminalChatConsole() :
Thread("TerminalThread"),
m_log_level(LL_ACTION),
m_utf8_bytes_to_wait(0),
m_kill_requested(NULL),
m_esc_mode(false),
m_game_time(0),
m_time_of_day(0)
Thread("TerminalThread")
{}
void setup(
@ -74,7 +68,7 @@ public:
virtual void *run();
// Highly required!
void clearKillStatus() { m_kill_requested = NULL; }
void clearKillStatus() { m_kill_requested = nullptr; }
void stopAndWaitforThread();
@ -102,10 +96,10 @@ private:
~CursesInitHelper() { cons->deInitOfCurses(); }
};
int m_log_level;
int m_log_level = LL_ACTION;
std::string m_nick;
u8 m_utf8_bytes_to_wait;
u8 m_utf8_bytes_to_wait = 0;
std::string m_pending_utf8_bytes;
std::list<std::string> m_nicks;
@ -114,16 +108,16 @@ private:
int m_rows;
bool m_can_draw_text;
bool *m_kill_requested;
bool *m_kill_requested = nullptr;
ChatBackend m_chat_backend;
ChatInterface *m_chat_interface;
TermLogOutput m_log_output;
bool m_esc_mode;
bool m_esc_mode = false;
u64 m_game_time;
u32 m_time_of_day;
u64 m_game_time = 0;
u32 m_time_of_day = 0;
};
extern TerminalChatConsole g_term_console;