From 103b0d845dc9fdbc10e2e40ab0fa346d133dc1ae Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 26 Jul 2024 03:26:13 +0800 Subject: [PATCH] support C++20, reduce warning --- src/Win/LogConsole.cpp | 6 +++--- src/Win/LogDialog.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Win/LogConsole.cpp b/src/Win/LogConsole.cpp index 690aa86..31a7d64 100644 --- a/src/Win/LogConsole.cpp +++ b/src/Win/LogConsole.cpp @@ -12,11 +12,11 @@ namespace hgl { private: - DWORD result; + DWORD result=0; - void *console_handle; + void *console_handle=nullptr; - u16char buf[LOG_BUF_SIZE]; + u16char buf[LOG_BUF_SIZE]{}; public: diff --git a/src/Win/LogDialog.cpp b/src/Win/LogDialog.cpp index cc24bde..72b4edb 100644 --- a/src/Win/LogDialog.cpp +++ b/src/Win/LogDialog.cpp @@ -10,7 +10,7 @@ namespace hgl { UTF16String name; - u16char buf[4096]; + u16char buf[4096]{}; public: