Value first, key second.

This commit is contained in:
Charlie Hess 2016-04-30 11:17:29 -07:00
parent cea1b49db0
commit 05493502ea

View file

@ -93,11 +93,11 @@ void Browser::SetUserActivity(const std::string& type, const std::map<std::strin
NSMutableArray* user_info_args = [[NSMutableArray alloc] init];
for (auto const &pair : user_info) {
NSString* key_ns = [NSString stringWithUTF8String:pair.first.c_str()];
NSString* value_ns = [NSString stringWithUTF8String:pair.second.c_str()];
NSString* key_ns = [NSString stringWithUTF8String:pair.first.c_str()];
[user_info_args addObject:key_ns];
[user_info_args addObject:value_ns];
[user_info_args addObject:key_ns];
}
user_activity.userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:user_info_args, nil];