From 58cba95b81a21ab850636b0dfdea3b4ab94c2b79 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 17 Jul 2023 15:41:06 +0200 Subject: [PATCH] chore: Improve code style --- src/Win32Util.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Win32Util.cpp b/src/Win32Util.cpp index 84e7c5b62..7e1bdb601 100644 --- a/src/Win32Util.cpp +++ b/src/Win32Util.cpp @@ -136,12 +136,11 @@ get_last_ntstatus() } // namespace Win32Util struct tm* -localtime_r(time_t* _clock, struct tm* _result) +localtime_r(time_t* clock, struct tm* result) { - struct tm* p = localtime(_clock); - - if (p) - *(_result) = *p; - + struct tm* p = localtime(clock); + if (p) { + *result = *p; + } return p; } -- 2.47.2