diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-17 01:35:16 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-17 01:35:16 +0200 |
commit | 26bc41099c10b3a63fd744690df5c25cb713718b (patch) | |
tree | 4f314216ec3b6c9f75f003282ca9cb87505772ce /c/common.h | |
parent | da04598319bf3ab9d240bbec993222623a4ab85d (diff) | |
download | EpisodeBrowser-26bc41099c10b3a63fd744690df5c25cb713718b.tar.gz |
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.
Diffstat (limited to 'c/common.h')
-rw-r--r-- | c/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |