[clang-tidy] remove redundant member init

Found with readability-redundant-member-init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-02 18:05:38 -07:00
parent 8948ec2de6
commit 7e678b5d4d
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 3 additions and 8 deletions

View File

@ -77,12 +77,9 @@ bool DryRunCommandRunner::WaitForCommand(Result* result) {
} // namespace
BuildStatus::BuildStatus(const BuildConfig& config)
: config_(config),
start_time_millis_(GetTimeMillis()),
started_edges_(0), finished_edges_(0), total_edges_(0),
progress_status_format_(NULL),
overall_rate_(), current_rate_(config.parallelism) {
: config_(config), start_time_millis_(GetTimeMillis()), started_edges_(0),
finished_edges_(0), total_edges_(0), progress_status_format_(NULL),
current_rate_(config.parallelism) {
// Don't do anything fancy in verbose mode.
if (config_.verbosity != BuildConfig::NORMAL)
printer_.set_smart_terminal(false);

View File

@ -28,8 +28,6 @@ Cleaner::Cleaner(State* state,
: state_(state),
config_(config),
dyndep_loader_(state, disk_interface),
removed_(),
cleaned_(),
cleaned_files_count_(0),
disk_interface_(disk_interface),
status_(0) {