summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRhody Lugo <rhodylugo@me.com>2015-01-08 10:31:10 -0430
committerRhody Lugo <rhodylugo@me.com>2015-01-08 10:31:10 -0430
commit08cfad00ddf7990b16855c28ade237e79bd52afe (patch)
treed2b57a4110c9dc46994b457fd9caaafebefa9ad6 /platform
parentd046bd88ad84f99789fbc7e544e8c8b929f14faf (diff)
Create the test string to detect kb layouts directly from the unicode chars
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/os_osx.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index f8902283c6..5bc47a74c1 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1297,9 +1297,7 @@ static NSString *createStringForKeys(const CGKeyCode *keyCode, int length) {
return nil;
}
- CFStringRef chararter = CFStringCreateWithCharacters(kCFAllocatorDefault, chars, 1);
- CFStringAppend(output, chararter);
- CFRelease(chararter);
+ CFStringAppendCharacters(output, chars, 1);
}
//CFStringUppercase(output, NULL);