Skip to content

Commit

Permalink
[win] Refactor as_dropoperation function
Browse files Browse the repository at this point in the history
Refactors the initial value of the variable used in as_dropoperation to
use a static cast of the enum value instead of 0.
  • Loading branch information
martincapello committed Sep 3, 2024
1 parent 3a90c7a commit fc919ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/win/dnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DWORD as_dropeffect(const os::DropOperation op)

os::DropOperation as_dropoperation(DWORD pdwEffect)
{
int op = 0;
int op = static_cast<int>(os::DropOperation::None);
if (pdwEffect & DROPEFFECT_COPY)
op |= static_cast<int>(os::DropOperation::Copy);

Expand Down

0 comments on commit fc919ec

Please sign in to comment.