mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Fix clang-tidy modernize-use-default-member-init warnings in headers
This commit is contained in:
parent
a05b4abdf7
commit
fb55c8856e
49 changed files with 134 additions and 185 deletions
|
@ -57,9 +57,9 @@ public:
|
|||
void UnsetFlags(int flags);
|
||||
|
||||
private:
|
||||
int fds[2];
|
||||
int flags[2];
|
||||
int status_flags[2];
|
||||
int fds[2] = {-1, -1};
|
||||
int flags[2] = {0};
|
||||
int status_flags[2] = {0};
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -119,7 +119,7 @@ public:
|
|||
void Swap() { swapped = ! swapped; }
|
||||
|
||||
private:
|
||||
Pipe pipes[2];
|
||||
Pipe pipes[2]; // NOLINT(modernize-use-default-member-init)
|
||||
bool swapped = false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue