Remove obsolete close() calls

This commit is contained in:
Stefan S 2020-03-24 19:25:00 +01:00
parent ec06a1a05b
commit 7006bcb038

View File

@ -18,7 +18,7 @@ namespace json
std::string obj_str;
obj_str.resize(length);
file.read(obj_str.data(), length);
file.close();
return JsonValue::Parse(winrt::to_hstring(obj_str)).GetObjectW();
}
return std::nullopt;
@ -37,7 +37,6 @@ namespace json
{
std::string obj_str{winrt::to_string(obj.Stringify())};
file.write(obj_str.c_str(), obj_str.size());
file.close();
}
}
}