From b8eb5589f32a5eceb9b2447d9a2df4fda2f901d8 Mon Sep 17 00:00:00 2001 From: Malin E Date: Thu, 30 Jun 2022 14:19:11 +0200 Subject: [PATCH] Remove a use of auto type in Horizons test --- modules/space/horizonsfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/space/horizonsfile.cpp b/modules/space/horizonsfile.cpp index b19f290154..4f6edf0521 100644 --- a/modules/space/horizonsfile.cpp +++ b/modules/space/horizonsfile.cpp @@ -195,13 +195,13 @@ json sendHorizonsRequest(const std::string& url, std::filesystem::path filePath) nlohmann::json convertHorizonsDownloadToJson(std::filesystem::path filePath) { // Read the entire file into a string - constexpr auto read_size = std::size_t(4096); + constexpr size_t readSize = std::size_t(4096); std::ifstream stream = std::ifstream(filePath); stream.exceptions(std::ios_base::badbit); std::string answer; - std::string buf = std::string(read_size, '\0'); - while (stream.read(buf.data(), read_size)) { + std::string buf = std::string(readSize, '\0'); + while (stream.read(buf.data(), readSize)) { answer.append(buf, 0, stream.gcount()); } answer.append(buf, 0, stream.gcount());