From fc919ecf74d915478df97100c20b896ef5129c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Tue, 3 Sep 2024 10:52:36 -0300 Subject: [PATCH] [win] Refactor as_dropoperation function Refactors the initial value of the variable used in as_dropoperation to use a static cast of the enum value instead of 0. --- os/win/dnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/win/dnd.cpp b/os/win/dnd.cpp index 4f3b8002f..5af81407e 100644 --- a/os/win/dnd.cpp +++ b/os/win/dnd.cpp @@ -33,7 +33,7 @@ DWORD as_dropeffect(const os::DropOperation op) os::DropOperation as_dropoperation(DWORD pdwEffect) { - int op = 0; + int op = static_cast(os::DropOperation::None); if (pdwEffect & DROPEFFECT_COPY) op |= static_cast(os::DropOperation::Copy);