[go: nahoru, domu]

[/net] default member initializers

This change was partially automated with the following command:

<PATH_TO_LLVM_SRC>/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
    -p . \
    -clang-tidy-binary <PATH_TO_LLVM_BUILD>/bin/clang-tidy \
    -clang-apply-replacements-binary \
        <PATH_TO_LLVM_BUILD>/bin/clang-apply-replacements \
    -checks='-*,modernize-use-default-member-init' \
    -header-filter='.*' \
    -fix 'net/*.cc' 'net/*.h'

See docs/clang_tidy.md for more details about run-clang-tidy.py.

This command modifies files outside net/ directory, so these are
manually reverted and some whitespace and some errors are manually
corrected after running clang-tidy.

This should cause no functional changes

Change-Id: I9ef778f3fbc4d95e3ea3d4e05d14297208fe4672
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3689324
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1011323}
diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc
index 1c7a8c4..7c60c51 100644
--- a/net/http/partial_data.cc
+++ b/net/http/partial_data.cc
@@ -31,18 +31,7 @@
 
 }  // namespace
 
-PartialData::PartialData()
-    : current_range_start_(0),
-      current_range_end_(0),
-      cached_start_(0),
-      cached_min_len_(0),
-      resource_size_(0),
-      range_requested_(false),
-      range_present_(false),
-      final_range_(false),
-      sparse_entry_(true),
-      truncated_(false),
-      initial_validation_(false) {}
+PartialData::PartialData() = default;
 
 PartialData::~PartialData() = default;