Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use data() instead of get_pointer()
  • Loading branch information
iccir committed Sep 29, 2026
commit 96f868cc8dae4d49e6eeea6de76578815bcab1ea
2 changes: 1 addition & 1 deletion src/_c_internal_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ mpl_SetForegroundWindow(nb::capsule UNUSED_ON_NON_WINDOWS(handle_p))
if (strcmp(handle_p.name(), "HWND") != 0) {
throw std::runtime_error("Handle must be a value returned from Win32_GetForegroundWindow");
}
HWND handle = static_cast<HWND>(handle_p.get_pointer());
HWND handle = static_cast<HWND>(handle_p.data());
if (!SetForegroundWindow(handle)) {
throw std::runtime_error("Error setting window");
}
Expand Down
Loading