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

cavegen.cpp, chat.cpp: modernize code

This commit is contained in:
Loic Blot 2017-08-16 08:26:04 +02:00
parent 9dd0f952e0
commit 90dfafcda2
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
3 changed files with 20 additions and 34 deletions

View file

@ -73,7 +73,7 @@ class ChatBuffer
{
public:
ChatBuffer(u32 scrollback);
~ChatBuffer();
~ChatBuffer() = default;
// Append chat line
// Removes oldest chat line if scrollback size is reached
@ -145,7 +145,7 @@ class ChatPrompt
{
public:
ChatPrompt(const std::wstring &prompt, u32 history_limit);
~ChatPrompt();
~ChatPrompt() = default;
// Input character or string
void input(wchar_t ch);
@ -252,7 +252,7 @@ class ChatBackend
{
public:
ChatBackend();
~ChatBackend();
~ChatBackend() = default;
// Add chat message
void addMessage(std::wstring name, std::wstring text);