From 277be6dd08633dbebfda93afdfc6b5cb57e053e0 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 8 Apr 2024 13:18:22 +0200 Subject: Use properly included standard library types by default --- src/other_tools/utils/curl_easy_handle.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/other_tools/utils/curl_easy_handle.cpp') diff --git a/src/other_tools/utils/curl_easy_handle.cpp b/src/other_tools/utils/curl_easy_handle.cpp index 6939c6d1..2fcfb877 100644 --- a/src/other_tools/utils/curl_easy_handle.cpp +++ b/src/other_tools/utils/curl_easy_handle.cpp @@ -40,11 +40,11 @@ auto read_stream_data(gsl::not_null const& stream) noexcept std::rewind(stream); // create string buffer to hold stream content - std::string content(static_cast(size), '\0'); + std::string content(static_cast(size), '\0'); // read stream content into string buffer auto n = std::fread(content.data(), 1, content.size(), stream); - if (n != static_cast(size)) { + if (n != static_cast(size)) { Logger::Log(LogLevel::Warning, "Reading curl log from temporary file failed: read only {} " "bytes while {} were expected", @@ -87,8 +87,8 @@ auto CurlEasyHandle::Create( } auto CurlEasyHandle::EasyWriteToFile(gsl::owner data, - size_t size, - size_t nmemb, + std::size_t size, + std::size_t nmemb, gsl::owner userptr) -> std::streamsize { auto actual_size = static_cast(size * nmemb); @@ -98,8 +98,8 @@ auto CurlEasyHandle::EasyWriteToFile(gsl::owner data, } auto CurlEasyHandle::EasyWriteToString(gsl::owner data, - size_t size, - size_t nmemb, + std::size_t size, + std::size_t nmemb, gsl::owner userptr) -> std::streamsize { size_t actual_size = size * nmemb; -- cgit v1.2.3