mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Tidyups
This commit is contained in:
parent
7ac6931039
commit
815a0d7b20
2 changed files with 19 additions and 17 deletions
|
@ -735,7 +735,7 @@ newLanguages(NSArray *oldNames)
|
|||
* the +_createArgumentDictionary: method.
|
||||
*/
|
||||
args = [[NSProcessInfo processInfo] arguments];
|
||||
enumerator = [[[NSProcessInfo processInfo] arguments] objectEnumerator];
|
||||
enumerator = [args objectEnumerator];
|
||||
[enumerator nextObject]; // Skip process name.
|
||||
while (nil != (key = [enumerator nextObject]))
|
||||
{
|
||||
|
@ -1543,14 +1543,16 @@ newLanguages(NSArray *oldNames)
|
|||
[_lock lock];
|
||||
NS_DURING
|
||||
{
|
||||
GSPersistentDomain *pd = [_persDomains objectForKey: bundleIdentifier];
|
||||
id old = [self objectForKey: defaultName];
|
||||
GSPersistentDomain *pd;
|
||||
|
||||
if (nil != pd)
|
||||
if (nil != (pd = [_persDomains objectForKey: bundleIdentifier]))
|
||||
{
|
||||
if ([pd setObject: nil forKey: defaultName])
|
||||
{
|
||||
id new;
|
||||
id old;
|
||||
id new;
|
||||
|
||||
old = [self objectForKey: defaultName];
|
||||
[self _changePersistentDomain: bundleIdentifier];
|
||||
new = [self objectForKey: defaultName];
|
||||
/* Emit only a KVO notification when the value has actually
|
||||
|
@ -2093,7 +2095,7 @@ static BOOL isPlistObject(id o)
|
|||
_lastSync = saved;
|
||||
}
|
||||
// Check and if not existent add the Application and the Global domains
|
||||
if ([_persDomains objectForKey: bundleIdentifier] == nil)
|
||||
if (bundleIdentifier && [_persDomains objectForKey: bundleIdentifier] == nil)
|
||||
{
|
||||
GSPersistentDomain *pd;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue