Move missing translations warnings to verbosestream (#8156)
[oweals/minetest.git] / src / chat.h
index ef5a9d47a5b3c83fab9ef388e4f5f5eca101c944..f84ece206c4fc0cb75adc236cf380c6653ae44d9 100644 (file)
@@ -77,7 +77,7 @@ public:
 
        // Append chat line
        // Removes oldest chat line if scrollback size is reached
-       void addLine(std::wstring name, std::wstring text);
+       void addLine(const std::wstring &name, const std::wstring &text);
 
        // Remove all chat lines
        void clear();
@@ -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);