From 48807e9a24e7e75344076547799b083f40def8fc Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Fri, 5 Jul 2019 17:40:51 -0400
Subject: [PATCH] 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.
---
 src/core/reporter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index dbc350070d..6ea26fda72 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -34,7 +34,7 @@ std::string GetTimestamp() {
 
 using namespace nlohmann;
 
-void SaveToFile(const json& json, const std::string& filename) {
+void SaveToFile(json json, const std::string& filename) {
     if (!FileUtil::CreateFullPath(filename)) {
         LOG_ERROR(Core, "Failed to create path for '{}' to save report!", filename);
         return;