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

@ -68,7 +68,7 @@ namespace detail {
class DebugLogger {
public:
// Output goes to stderr per default.
DebugLogger() : file(nullptr), all(false), verbose(false) {};
DebugLogger() = default;
~DebugLogger();
void OpenDebugLog(const char* filename = 0);
@ -99,14 +99,14 @@ public:
void ShowStreamsHelp();
private:
FILE* file;
bool all;
bool verbose;
FILE* file = nullptr;
bool all = false;
bool verbose = false;
struct Stream {
const char* prefix;
int indent;
bool enabled;
const char* prefix = nullptr;
int indent = 0;
bool enabled = false;
};
std::set<std::string> enabled_streams;