Value first, key second.
This commit is contained in:
parent
cea1b49db0
commit
05493502ea
1 changed files with 5 additions and 5 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue