summaryrefslogtreecommitdiff
path: root/src/terminal_chat_console.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-06-21 11:51:29 +0200
committerGitHub <noreply@github.com>2017-06-21 11:51:29 +0200
commit1425c6def156840b359b90b4f32b9c7b8f005731 (patch)
tree0390ed5ad9bcf481416061446f859b3f48955422 /src/terminal_chat_console.h
parent12aad731adef495dec03f384d10b4f8f57b6a1d3 (diff)
downloadminetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.gz
minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.bz2
minetest-1425c6def156840b359b90b4f32b9c7b8f005731.zip
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
Diffstat (limited to 'src/terminal_chat_console.h')
-rw-r--r--src/terminal_chat_console.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/terminal_chat_console.h b/src/terminal_chat_console.h
index 2111b7ecb..8f6abe295 100644
--- a/src/terminal_chat_console.h
+++ b/src/terminal_chat_console.h
@@ -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;