From e2b6d9d3c41d162517019ee0bf9147e398a5b1fa Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 16 Dec 2024 13:39:36 +0100 Subject: Fix cause of minor warnings --- src/other_tools/utils/content.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/other_tools/utils') diff --git a/src/other_tools/utils/content.hpp b/src/other_tools/utils/content.hpp index a644f5bd..6d42e060 100644 --- a/src/other_tools/utils/content.hpp +++ b/src/other_tools/utils/content.hpp @@ -33,8 +33,8 @@ /// \brief Fetches a file from the internet and stores its content in memory. /// \returns the content. -[[nodiscard]] static auto NetworkFetch(std::string const& fetch_url, - CAInfoPtr const& ca_info) noexcept +[[nodiscard]] static inline auto NetworkFetch(std::string const& fetch_url, + CAInfoPtr const& ca_info) noexcept -> std::optional { auto curl_handle = CurlEasyHandle::Create( ca_info->no_ssl_verify, ca_info->ca_bundle, LogLevel::Debug); @@ -47,7 +47,7 @@ /// \brief Fetches a file from the internet and stores its content in memory. /// Tries not only a given remote, but also all associated remote locations. /// \returns The fetched data on success or an unexpected error as string. -[[nodiscard]] static auto NetworkFetchWithMirrors( +[[nodiscard]] static inline auto NetworkFetchWithMirrors( std::string const& fetch_url, std::vector const& mirrors, CAInfoPtr const& ca_info, @@ -89,8 +89,8 @@ } template -[[nodiscard]] static auto GetContentHash(std::string const& data) noexcept - -> std::string { +[[nodiscard]] static inline auto GetContentHash( + std::string const& data) noexcept -> std::string { auto hasher = Hasher::Create(kType); hasher->Update(data); auto digest = std::move(*hasher).Finalize(); -- cgit v1.2.3