-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#51981Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
I tried to compile KeyCodeMap.g.mm with ARC instead of MRC as part of #137801 and it failed.
../../flutter/shell/platform/darwin/ios/framework/Source/KeyCodeMap.g.mm:332:57: error: using 'initWithDictionary:' with a literal is redundant [-Werror,-Wobjc-redundant-literal-use]
332 | NSDictionary<NSString*, NSNumber*>* specialKeyMapping = [[NSDictionary alloc] initWithDictionary:@{
-NSDictionary<NSString*, NSNumber*>* specialKeyMapping = [[NSDictionary alloc] initWithDictionary:@{
+NSDictionary<NSString*, NSNumber*>* specialKeyMapping = @{
@@@SPECIAL_KEY_MAPPING@@@
-}];
+};See also #106909
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically