From 26bc41099c10b3a63fd744690df5c25cb713718b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 17 Jul 2022 01:35:16 +0200 Subject: Add const to places. Note that I did NOT add const to non-pointer/non-reference arguments in function declarations (without a following definition), as they do not mean anything there. --- c/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index 76f3d6e..d6e5848 100644 --- a/c/common.h +++ b/c/common.h @@ -30,7 +30,7 @@ private: HMODULE m_hModule; }; -inline int Cmp(int a, int b) +inline int Cmp(const int a, const int b) { if (a == b) return 0; if (a > b) return 1; @@ -38,7 +38,7 @@ inline int Cmp(int a, int b) } /* Return integer scaled for current DPI. */ -inline int Dpi(int i) +inline int Dpi(const int i) { extern int g_iDPI; return MulDiv(i, g_iDPI, 96); -- cgit v1.2.3