mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
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:
parent
50b240fcbd
commit
c212310fbe
7 changed files with 18 additions and 17 deletions
|
@ -22,7 +22,7 @@ u8 DSP::Host::ReadHostMemory(u32 addr)
|
|||
void DSP::Host::WriteHostMemory(u8 value, u32 addr)
|
||||
{
|
||||
}
|
||||
void DSP::Host::OSD_AddMessage(const std::string& str, u32 ms)
|
||||
void DSP::Host::OSD_AddMessage(std::string str, u32 ms)
|
||||
{
|
||||
}
|
||||
bool DSP::Host::OnThread()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue