From b9b6ef0c4617d99774df4b46c853469ef62cd7c1 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 Apr 2017 17:28:01 +1000 Subject: Use same parameter names in declarations and definitions. --- win32/PlatWin.cxx | 14 +++++++------- win32/ScintillaWin.cxx | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c93a058c7..1b0f65518 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1811,11 +1811,11 @@ static RECT RectFromMonitor(HMONITOR hMonitor) { return rc; } -void Window::SetPositionRelative(PRectangle rc, Window w) { +void Window::SetPositionRelative(PRectangle rc, Window relativeTo) { const LONG style = ::GetWindowLong(static_cast(wid), GWL_STYLE); if (style & WS_POPUP) { POINT ptOther = {0, 0}; - ::ClientToScreen(static_cast(w.GetID()), &ptOther); + ::ClientToScreen(static_cast(relativeTo.GetID()), &ptOther); rc.Move(static_cast(ptOther.x), static_cast(ptOther.y)); RECT rcMonitor = RectFromPRectangle(rc); @@ -2657,9 +2657,9 @@ void ListBoxX::Paint(HDC hDC) { ::DeleteObject(hBitmap); } -LRESULT PASCAL ListBoxX::ControlWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { +LRESULT PASCAL ListBoxX::ControlWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { try { - switch (uMsg) { + switch (iMessage) { case WM_ERASEBKGND: return TRUE; @@ -2706,13 +2706,13 @@ LRESULT PASCAL ListBoxX::ControlWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPA WNDPROC prevWndProc = reinterpret_cast(GetWindowLongPtr(hWnd, GWLP_USERDATA)); if (prevWndProc) { - return ::CallWindowProc(prevWndProc, hWnd, uMsg, wParam, lParam); + return ::CallWindowProc(prevWndProc, hWnd, iMessage, wParam, lParam); } else { - return ::DefWindowProc(hWnd, uMsg, wParam, lParam); + return ::DefWindowProc(hWnd, iMessage, wParam, lParam); } } catch (...) { } - return ::DefWindowProc(hWnd, uMsg, wParam, lParam); + return ::DefWindowProc(hWnd, iMessage, wParam, lParam); } LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index f5e1f07d6..5d159ca31 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -356,8 +356,8 @@ class ScintillaWin : void ScrollMessage(WPARAM wParam); void HorizontalScrollMessage(WPARAM wParam); void FullPaint(); - void FullPaintDC(HDC dc); - bool IsCompatibleDC(HDC dc); + void FullPaintDC(HDC hdc); + bool IsCompatibleDC(HDC hOtherDC); DWORD EffectFromState(DWORD grfKeyState) const; int SetScrollInfo(int nBar, LPCSCROLLINFO lpsi, BOOL bRedraw); -- cgit v1.2.3