diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-21 11:28:25 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-21 11:31:05 -0400 |
commit | 5a53d75313dfc8f7f89e8041f866ccc5dd53d211 (patch) | |
tree | 2ffe3581a49bdb5337c0f7a4b685e7a4adfc6022 | |
parent | c95c4442e939b38fb60430b93b89c292bb43078f (diff) |
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).
-rw-r--r-- | src/common/logging/text_formatter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp index 8583916a8e..05437c137d 100644 --- a/src/common/logging/text_formatter.cpp +++ b/src/common/logging/text_formatter.cpp @@ -42,7 +42,7 @@ void PrintColoredMessage(const Entry& entry) { return; } - CONSOLE_SCREEN_BUFFER_INFO original_info = {0}; + CONSOLE_SCREEN_BUFFER_INFO original_info = {}; GetConsoleScreenBufferInfo(console_handle, &original_info); WORD color = 0; |