mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon/NetPlayChatUI: Take std::string by value in AppendChat()
Given we're simply storing the std::string into a deque. We can emplace it and move it. Completely avoiding copies with the current usage of the function.
This commit is contained in:
@ -20,7 +20,7 @@ public:
|
||||
using Color = std::array<float, 3>;
|
||||
|
||||
void Display();
|
||||
void AppendChat(const std::string& message, Color color);
|
||||
void AppendChat(std::string message, Color color);
|
||||
void SendMessage();
|
||||
void Activate();
|
||||
|
||||
|
Reference in New Issue
Block a user