mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
UICommon/GameFile: std::move std::string argument in constructor
Allows for calling code to move the argument into the constructor, avoiding a copy.
This commit is contained in:
parent
8e65869484
commit
56faf750be
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ GameFile::LookupUsingConfigLanguage(const std::map<DiscIO::Language, std::string
|
|||
|
||||
GameFile::GameFile() = default;
|
||||
|
||||
GameFile::GameFile(const std::string& path) : m_file_path(path)
|
||||
GameFile::GameFile(std::string path) : m_file_path(std::move(path))
|
||||
{
|
||||
{
|
||||
std::string name, extension;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue