summaryrefslogtreecommitdiff
path: root/src/other_tools/utils
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-04 13:52:55 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 17:51:22 +0200
commit6d484db9b293aac4b8bd790eb7aead3a806f8c7b (patch)
treec7a93cef8a95006f217d557300151ce5e8735437 /src/other_tools/utils
parent0fc0d9118b5e525fa582de0286c8e83bb0da4e16 (diff)
downloadjustbuild-6d484db9b293aac4b8bd790eb7aead3a806f8c7b.tar.gz
Enable cppcoreguidelines-* checks.
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r--src/other_tools/utils/curl_context.cpp5
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");
}