https://src.bluestatic.org
/
apple-ir-control.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceb740f
)
VERBOSE should be const for better optimization.
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 13 Mar 2016 23:19:09 +0000
(19:19 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 13 Mar 2016 23:19:57 +0000
(19:19 -0400)
apple-ir-control.cc
patch
|
blob
|
history
diff --git
a/apple-ir-control.cc
b/apple-ir-control.cc
index a48d7e15bdb6f6168bf129269d136e8266fb0e08..3ac6ba73ec36e203cd86f3df0efef6ec11e2f667 100644
(file)
--- 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");
}