aboutsummaryrefslogtreecommitdiffstats
path: root/win/wm_hooks/wm_hooks.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-04-21 02:18:22 +0200
committerPierre Ossman <ossman@cendio.se>2024-06-24 14:22:35 +0200
commit12b3f4021641537b90727b23d42de5dff59006cd (patch)
treed494cda8c019a53989099a44b05aca2e0a4fff8a /win/wm_hooks/wm_hooks.cxx
parent4a71ac5bb79e3cd53499255f231c490fc9a5627b (diff)
downloadtigervnc-12b3f4021641537b90727b23d42de5dff59006cd.tar.gz
tigervnc-12b3f4021641537b90727b23d42de5dff59006cd.zip
Avoid shadowing variables
It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
Diffstat (limited to 'win/wm_hooks/wm_hooks.cxx')
-rw-r--r--win/wm_hooks/wm_hooks.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/wm_hooks/wm_hooks.cxx b/win/wm_hooks/wm_hooks.cxx
index ecff85cb..a48a1738 100644
--- a/win/wm_hooks/wm_hooks.cxx
+++ b/win/wm_hooks/wm_hooks.cxx
@@ -138,8 +138,8 @@ bool NotifyRectangle(RECT* rect) {
LPARAM l = MAKELONG((SHORT)rect->right, (SHORT)rect->bottom);
return NotifyHookOwner(WM_HK_RectangleChanged, w, l);
}
-bool NotifyCursor(HCURSOR cursor) {
- return NotifyHookOwner(WM_HK_CursorChanged, 0, (LPARAM)cursor);
+bool NotifyCursor(HCURSOR cursor_) {
+ return NotifyHookOwner(WM_HK_CursorChanged, 0, (LPARAM)cursor_);
}
void ProcessWindowMessage(UINT msg, HWND wnd, WPARAM wParam, LPARAM /*lParam*/) {