summaryrefslogtreecommitdiff
path: root/src/chat.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-04-04 07:42:40 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2018-04-04 07:42:40 +0200
commit8e0b80aa369df7d1142053f077df928106c6ce8c (patch)
tree7f12869eef1a18364be9d8db67e01d060bc11d60 /src/chat.h
parenta90d27e1e23fa1c369c05a4d9c6083aa86ef7f52 (diff)
downloadminetest-8e0b80aa369df7d1142053f077df928106c6ce8c.tar.gz
minetest-8e0b80aa369df7d1142053f077df928106c6ce8c.tar.bz2
minetest-8e0b80aa369df7d1142053f077df928106c6ce8c.zip
Fix last performance-type-promotion-in-math-fn problems
Diffstat (limited to 'src/chat.h')
-rw-r--r--src/chat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chat.h b/src/chat.h
index 8649704d1..f84ece206 100644
--- a/src/chat.h
+++ b/src/chat.h
@@ -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);