VideoCommon/OnScreenDisplay: Take Message's std::string parameter by value
Allows callers to std::move strings into the functions (or automatically assume the move constructor/move assignment operator for rvalue references, potentially avoiding copies altogether.
This commit is contained in:
1 parent
50b240fcbd
commit
c212310fbe
7 files changed
+18
-17
No files matched your search
@@ -63,7 +63,7 @@ void SaveScreenShot(const std::string& name, bool wait_for_completion = false);
|
||||
void Callback_WiimoteInterruptChannel(int number, u16 channel_id, const u8* data, u32 size);
|
||||
|
||||
// This displays messages in a user-visible way.
|
||||
void DisplayMessage(const std::string& message, int time_in_ms);
|
||||
void DisplayMessage(std::string message, int time_in_ms);
|
||||
|
||||
void FrameUpdateOnCPUThread();
|
||||
void OnFrameEnd();
|
||||
|
||||
Reference in new issue
Block a user