[net/base,cert,cookies,disk_cache] default member initializers
This change was partially automated with run-clang-tidy.py.
This should cause no functional changes.
Bug: 1334056
Change-Id: I7dc22ede381972c61c94ffa6d83a6d5de5dce57d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3694543
Commit-Queue: Tsuyoshi Horo <[email protected]>
Reviewed-by: Kenichi Ishibashi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1012277}
diff --git a/net/base/elements_upload_data_stream.h b/net/base/elements_upload_data_stream.h
index 0806a9e..d2e7388 100644
--- a/net/base/elements_upload_data_stream.h
+++ b/net/base/elements_upload_data_stream.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "net/base/net_errors.h"
#include "net/base/net_export.h"
#include "net/base/upload_data_stream.h"
@@ -77,10 +78,10 @@
// Index of the current upload element (i.e. the element currently being
// read). The index is used as a cursor to iterate over elements in
// |upload_data_|.
- size_t element_index_;
+ size_t element_index_ = 0;
// Set to actual error if read fails, otherwise set to net::OK.
- int read_error_;
+ int read_error_ = OK;
base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_{this};
};