aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 01:35:16 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 01:35:16 +0200
commit26bc41099c10b3a63fd744690df5c25cb713718b (patch)
tree4f314216ec3b6c9f75f003282ca9cb87505772ce /c/common.h
parentda04598319bf3ab9d240bbec993222623a4ab85d (diff)
downloadEpisodeBrowser-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.h4
1 files changed, 2 insertions, 2 deletions
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);