logging/text_formatter: Use empty braces for initializing CONSOLE_SCREEN_BUFFER_INFO instance
The previous form of initializing done here is a C-ism, an empty set of braces is sufficient for initializing (and doesn't potentially cause missing brace warnings, given the first member of the struct is a COORD struct).
This commit is contained in:
parent
c95c4442e9
commit
5a53d75313
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void PrintColoredMessage(const Entry& entry) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CONSOLE_SCREEN_BUFFER_INFO original_info = {0};
|
CONSOLE_SCREEN_BUFFER_INFO original_info = {};
|
||||||
GetConsoleScreenBufferInfo(console_handle, &original_info);
|
GetConsoleScreenBufferInfo(console_handle, &original_info);
|
||||||
|
|
||||||
WORD color = 0;
|
WORD color = 0;
|
||||||
|
|
Loading…
Reference in a new issue