Fix clang-tidy modernize-use-default-member-init warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-10 09:32:23 -07:00
parent a05b4abdf7
commit fb55c8856e
49 changed files with 134 additions and 185 deletions

View file

@ -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;
};