mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix last performance-type-promotion-in-math-fn problems
This commit is contained in:
parent
a90d27e1e2
commit
8e0b80aa36
11 changed files with 59 additions and 42 deletions
|
@ -153,7 +153,7 @@ public:
|
|||
void input(const std::wstring &str);
|
||||
|
||||
// Add a string to the history
|
||||
void addToHistory(std::wstring line);
|
||||
void addToHistory(const std::wstring &line);
|
||||
|
||||
// Get current line
|
||||
std::wstring getLine() const { return m_line; }
|
||||
|
@ -165,7 +165,7 @@ public:
|
|||
void clear();
|
||||
|
||||
// Replace the current line with the given text
|
||||
std::wstring replace(std::wstring line);
|
||||
std::wstring replace(const std::wstring &line);
|
||||
|
||||
// Select previous command from history
|
||||
void historyPrev();
|
||||
|
@ -256,7 +256,7 @@ public:
|
|||
~ChatBackend() = default;
|
||||
|
||||
// Add chat message
|
||||
void addMessage(std::wstring name, std::wstring text);
|
||||
void addMessage(const std::wstring &name, std::wstring text);
|
||||
// Parse and add unparsed chat message
|
||||
void addUnparsedMessage(std::wstring line);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue