From fec1ea7a799de1255add680a2fda4bf95015b65f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 13 Mar 2016 19:19:09 -0400 Subject: [PATCH] VERBOSE should be const for better optimization. --- apple-ir-control.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apple-ir-control.cc b/apple-ir-control.cc index a48d7e1..3ac6ba7 100644 --- a/apple-ir-control.cc +++ b/apple-ir-control.cc @@ -17,9 +17,9 @@ const CFStringRef kPrefDomain = CFSTR("com.apple.driver.AppleIRController"); const CFStringRef kPrefEnabled = CFSTR("DeviceEnabled"); #if NDEBUG -bool VERBOSE = false; +const bool VERBOSE = false; #else -bool VERBOSE = true; +const bool VERBOSE = true; #endif #define LOG(msg, ...) do { \ @@ -104,7 +104,7 @@ const char* GetBooleanDescription(CFTypeRef boolean) { bool SynchronizePrefs() { bool rv = CFPreferencesSynchronize(kPrefDomain, kCFPreferencesAnyUser, - kCFPreferencesCurrentHost); + kCFPreferencesCurrentHost); if (!rv) { ERROR("Failed to CFPreferencesSynchronize"); } -- 2.43.5