From e3fe83084316bef629a2a2aa0ee607552ba93d94 Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 12 Sep 2017 22:57:30 +0200 Subject: [PATCH] Extra constness where applicable --- SilentPatchIII/SilentPatchIII.cpp | 2 +- SilentPatchVC/SilentPatchVC.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 717b051..cfe568d 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -117,7 +117,7 @@ LRESULT CALLBACK CustomWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPara return (*OldWndProc)(hwnd, uMsg, wParam, lParam); } -static auto* pCustomWndProc = CustomWndProc; +static auto* const pCustomWndProc = CustomWndProc; static void (* const ConstructRenderList)() = AddressByVersion(0x4A76B0, 0x4A77A0, 0x4A7730); static void (* const RsMouseSetPos)(RwV2d*) = AddressByVersion(0x580D20, 0x581070, 0x580F70); diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 3b1e8f4..73be1a3 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -70,7 +70,7 @@ LRESULT CALLBACK CustomWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPara return (*OldWndProc)(hwnd, uMsg, wParam, lParam); } -static auto* pCustomWndProc = CustomWndProc; +static auto* const pCustomWndProc = CustomWndProc; static void (* const ConstructRenderList)() = AddressByVersion(0x4CA260, 0x4CA280, 0x4CA120); static void (* const RsMouseSetPos)(RwV2d*) = AddressByVersion(0x6030C0, 0x6030A0, 0x602CE0);