Coding style.

This commit is contained in:
Christian Speckner 2019-04-26 22:27:20 +02:00
parent 96b5ffc386
commit 262084778e
1 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,10 @@ void SettingsRepositoryMACOS::save(const std::map<string, Variant>& values)
@autoreleasepool {
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
for(const auto& pair: values)
[defaults setObject:[NSString stringWithUTF8String:pair.second.toCString()] forKey:[NSString stringWithUTF8String:pair.first.c_str()]];
for (const auto& pair: values)
[defaults
setObject:[NSString stringWithUTF8String:pair.second.toCString()]
forKey:[NSString stringWithUTF8String:pair.first.c_str()]
];
}
}