From 8d3141717c257eff5af8ee1cdaa7f26328e38f6f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 7 Mar 2021 17:54:19 +0100 Subject: Make `E_REGISTER_HOTKEY` a static constant Probably better type checking with this than the `#define`. --- main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.m') diff --git a/main.m b/main.m index 94612ff..4a01357 100644 --- a/main.m +++ b/main.m @@ -23,7 +23,7 @@ #import "Invert.h" #import "DDHotKeyCenter.h" -#define E_REGISTER_HOTKEY 5 +static const int E_REGISTER_HOTKEY = 5; int register_hotkeys(); -- cgit v1.2.3