From 5982a4a7ee611332a46de1b3d1dd60fdf0527b63 Mon Sep 17 00:00:00 2001 From: Stefan S Date: Tue, 24 Mar 2020 15:03:11 +0100 Subject: [PATCH] Follow file naming policy --- src/common/json.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/json.cpp b/src/common/json.cpp index 100771abc9..0c8533a46e 100644 --- a/src/common/json.cpp +++ b/src/common/json.cpp @@ -13,8 +13,8 @@ namespace json if (file.is_open()) { using isbi = std::istreambuf_iterator; - std::string objStr{ isbi{ file }, isbi{} }; - return JsonValue::Parse(winrt::to_hstring(objStr)).GetObjectW(); + std::string obj_str{ isbi{ file }, isbi{} }; + return JsonValue::Parse(winrt::to_hstring(obj_str)).GetObjectW(); } return std::nullopt; } @@ -26,7 +26,7 @@ namespace json void to_file(std::wstring_view file_name, const JsonObject& obj) { - std::wstring objStr{ obj.Stringify().c_str() }; - std::ofstream{ file_name.data(), std::ios::binary } << winrt::to_string(objStr); + std::wstring obj_str{ obj.Stringify().c_str() }; + std::ofstream{ file_name.data(), std::ios::binary } << winrt::to_string(obj_str); } }