summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2020-04-02 17:33:46 +0200
committerlupoDharkael <izhe@hotmail.es>2020-04-02 17:33:46 +0200
commit6324f578bdc18ac0fd86eccecc19d3ba9acdadfd (patch)
tree23b4a4b4a6b85b3e4b0c76038f376973e0bb53db /platform/windows
parent6a38ce1b318cc71c285c11f5b52f04a681c309fd (diff)
Replace 0L with a casted nullptr
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/display_server_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 01a99df6b4..b0eb44df46 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -734,7 +734,7 @@ void DisplayServerWindows::window_set_transient(WindowID p_window, WindowID p_pa
wd_window.transient_parent = INVALID_WINDOW_ID;
wd_parent.transient_children.erase(p_window);
- SetWindowLongPtr(wd_window.hWnd, GWLP_HWNDPARENT, 0L);
+ SetWindowLongPtr(wd_window.hWnd, GWLP_HWNDPARENT, (LONG_PTR) nullptr);
} else {
ERR_FAIL_COND(!windows.has(p_parent));
ERR_FAIL_COND_MSG(wd_window.transient_parent != INVALID_WINDOW_ID, "Window already has a transient parent");