From 030af3e7af210617df00bf850476df6b46fb004d Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 30 Sep 2024 16:16:20 +0200 Subject: Enable readability-* checks. --- src/buildtool/crypto/hasher.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/buildtool/crypto/hasher.cpp') diff --git a/src/buildtool/crypto/hasher.cpp b/src/buildtool/crypto/hasher.cpp index 41182559..7c5d1d9c 100644 --- a/src/buildtool/crypto/hasher.cpp +++ b/src/buildtool/crypto/hasher.cpp @@ -66,15 +66,15 @@ struct InitializeVisitor final { static constexpr std::string_view kLogInfo = "Initialize"; // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Init(&ctx) == kOpenSslTrue; } }; @@ -86,15 +86,15 @@ struct UpdateVisitor final { : data_{*data} {} // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } -- cgit v1.2.3