diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-04 13:52:55 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 17:51:22 +0200 |
commit | 6d484db9b293aac4b8bd790eb7aead3a806f8c7b (patch) | |
tree | c7a93cef8a95006f217d557300151ce5e8735437 /src/other_tools/utils/curl_context.cpp | |
parent | 0fc0d9118b5e525fa582de0286c8e83bb0da4e16 (diff) | |
download | justbuild-6d484db9b293aac4b8bd790eb7aead3a806f8c7b.tar.gz |
Enable cppcoreguidelines-* checks.
Diffstat (limited to 'src/other_tools/utils/curl_context.cpp')
-rw-r--r-- | src/other_tools/utils/curl_context.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/other_tools/utils/curl_context.cpp b/src/other_tools/utils/curl_context.cpp index 3e0b514e..7006d727 100644 --- a/src/other_tools/utils/curl_context.cpp +++ b/src/other_tools/utils/curl_context.cpp @@ -21,9 +21,8 @@ extern "C" { #include <curl/curl.h> } -CurlContext::CurlContext() noexcept { - // NOLINTNEXTLINE(hicpp-signed-bitwise) - initialized_ = curl_global_init(CURL_GLOBAL_DEFAULT) >= 0; +CurlContext::CurlContext() noexcept + : initialized_{curl_global_init(CURL_GLOBAL_DEFAULT) >= 0} { if (not initialized_) { Logger::Log(LogLevel::Error, "initializing libcurl failed"); } |