diff --git a/src/base/io/json/Json.cpp b/src/base/io/json/Json.cpp index 48016665a..fb4c0e470 100644 --- a/src/base/io/json/Json.cpp +++ b/src/base/io/json/Json.cpp @@ -191,7 +191,7 @@ rapidjson::Value xmrig::Json::normalize(double value, bool zero) } -bool xmrig::Json::convertOffset(std::ifstream& ifs, size_t offset, size_t& line, size_t& pos, std::vector& s) +bool xmrig::Json::convertOffset(std::istream& ifs, size_t offset, size_t& line, size_t& pos, std::vector& s) { std::string prev_t; std::string t; diff --git a/src/base/io/json/Json.h b/src/base/io/json/Json.h index 7ceae5dd3..e6b772a17 100644 --- a/src/base/io/json/Json.h +++ b/src/base/io/json/Json.h @@ -58,7 +58,7 @@ public: static rapidjson::Value normalize(double value, bool zero); private: - static bool convertOffset(std::ifstream& ifs, size_t offset, size_t& line, size_t& pos, std::vector& s); + static bool convertOffset(std::istream& ifs, size_t offset, size_t& line, size_t& pos, std::vector& s); };