summaryrefslogtreecommitdiff
path: root/src/other_tools/utils
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-30 12:16:43 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 13:37:39 +0200
commitce23db59c6399199fa55b4b7dc8880522e2f1bca (patch)
tree5b77d3c84289f023cbe6f4a81cf391a0087fe660 /src/other_tools/utils
parente5d7cb5ce5b9cc40b0c56b18980a4234118c1739 (diff)
downloadjustbuild-ce23db59c6399199fa55b4b7dc8880522e2f1bca.tar.gz
Enable readability-redundant-member-init check.
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r--src/other_tools/utils/curl_easy_handle.hpp2
-rw-r--r--src/other_tools/utils/curl_url_handle.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/other_tools/utils/curl_easy_handle.hpp b/src/other_tools/utils/curl_easy_handle.hpp
index 81bcbed8..a3dd6e06 100644
--- a/src/other_tools/utils/curl_easy_handle.hpp
+++ b/src/other_tools/utils/curl_easy_handle.hpp
@@ -72,7 +72,7 @@ class CurlEasyHandle {
private:
// IMPORTANT: the CurlContext must to be initialized before any curl object!
- CurlContext curl_context_{};
+ CurlContext curl_context_;
std::unique_ptr<CURL, decltype(&curl_easy_closer)> handle_{
nullptr,
curl_easy_closer};
diff --git a/src/other_tools/utils/curl_url_handle.hpp b/src/other_tools/utils/curl_url_handle.hpp
index 476277f3..6a7a7917 100644
--- a/src/other_tools/utils/curl_url_handle.hpp
+++ b/src/other_tools/utils/curl_url_handle.hpp
@@ -70,7 +70,7 @@ struct ConfigKeyMatchDegree {
struct NoproxyPattern {
// stores the substrings of the host portion of the pattern, obtained by
// splitting with delimiter '.'
- std::vector<std::string> host_tokens{};
+ std::vector<std::string> host_tokens;
// port number as string, or nullopt if port missing
std::optional<std::string> port;
};
@@ -163,7 +163,7 @@ class CurlURLHandle {
private:
// IMPORTANT: the CurlContext must be initialized before any curl
// object!
- CurlContext curl_context_{};
+ CurlContext curl_context_;
std::unique_ptr<CURLU, decltype(&curl_url_closer)> handle_{nullptr,
curl_url_closer};