diff --git a/src/correction.cc b/src/correction.cc index 1c7f52f..7dbfb19 100644 --- a/src/correction.cc +++ b/src/correction.cc @@ -802,14 +802,14 @@ std::unique_ptr CorrectionSet::from_file(const std::string& fn) { #ifdef WITH_ZLIB gzFile_s* fpz = gzopen(fn.c_str(), "r"); rapidjson::GzFileReadStream is(fpz, readBuffer, sizeof(readBuffer)); - ok = json.ParseStream(is); + ok = json.ParseStream(is); gzclose(fpz); #else throw std::runtime_error("Gzip-compressed JSON files are only supported if ZLIB is found when the package is built"); #endif } else { rapidjson::FileReadStream is(fp, readBuffer, sizeof(readBuffer)); - ok = json.ParseStream(is); + ok = json.ParseStream(is); fclose(fp); } if (!ok) { @@ -824,7 +824,7 @@ std::unique_ptr CorrectionSet::from_file(const std::string& fn) { std::unique_ptr CorrectionSet::from_string(const char * data) { rapidjson::Document json; - rapidjson::ParseResult ok = json.Parse(data); + rapidjson::ParseResult ok = json.Parse(data); if (!ok) { throw std::runtime_error( std::string("JSON parse error: ") + rapidjson::GetParseError_En(ok.Code())