mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
core/reporter: Allow moves into SaveToFile()
Taking the json instance as a constant reference, makes all moves into the parameter non-functional, resulting in copies. Taking it by value allows moves to function.
This commit is contained in:
parent
2321656dbe
commit
48807e9a24
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ std::string GetTimestamp() {
|
||||||
|
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
||||||
void SaveToFile(const json& json, const std::string& filename) {
|
void SaveToFile(json json, const std::string& filename) {
|
||||||
if (!FileUtil::CreateFullPath(filename)) {
|
if (!FileUtil::CreateFullPath(filename)) {
|
||||||
LOG_ERROR(Core, "Failed to create path for '{}' to save report!", filename);
|
LOG_ERROR(Core, "Failed to create path for '{}' to save report!", filename);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue