Remove usage of obsolete Json::StyledStreamWriter class.

This commit is contained in:
Hans Philipp Annen 2017-12-20 18:17:36 +01:00
parent 76d8548fc9
commit 5bf6a9ed97

View File

@ -2303,8 +2303,7 @@ int Downloader::saveGameDetailsCache()
} }
else else
{ {
Json::StyledStreamWriter jsonwriter; ofs << json << std::endl;
jsonwriter.write(ofs, json);
ofs.close(); ofs.close();
} }
return res; return res;
@ -3304,8 +3303,7 @@ void Downloader::saveGalaxyJSON()
} }
else else
{ {
Json::StyledStreamWriter jsonwriter; ofs << Globals::galaxyConf.getJSON() << std::endl;
jsonwriter.write(ofs, Globals::galaxyConf.getJSON());
ofs.close(); ofs.close();
} }
if (!Globals::globalConfig.bRespectUmask) if (!Globals::globalConfig.bRespectUmask)