mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Tidyups to avoid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20863 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
13ae894cb9
commit
f92b8f24ef
7 changed files with 25 additions and 23 deletions
|
@ -1061,7 +1061,7 @@ static NSString *pathForUser(NSString *user)
|
|||
|
||||
while ((dN = (*nImp)(enumerator, nextObjectSel)) != nil)
|
||||
{
|
||||
id dict;
|
||||
NSDictionary *dict;
|
||||
|
||||
dict = (*pImp)(_persDomains, objectForKeySel, dN);
|
||||
if (dict != nil && (object = [dict objectForKey: defaultName]))
|
||||
|
@ -1084,7 +1084,8 @@ static NSString *pathForUser(NSString *user)
|
|||
id obj;
|
||||
|
||||
[_lock lock];
|
||||
obj = [[_persDomains objectForKey: processName] objectForKey: defaultName];
|
||||
obj = [_persDomains objectForKey: processName];
|
||||
obj = [(NSDictionary*)obj objectForKey: defaultName];
|
||||
if (obj != nil)
|
||||
{
|
||||
NSMutableDictionary *dict;
|
||||
|
@ -1182,7 +1183,7 @@ static BOOL isPlistObject(id o)
|
|||
{
|
||||
return NO;
|
||||
}
|
||||
tmp = [o objectForKey: tmp];
|
||||
tmp = [(NSDictionary*)o objectForKey: tmp];
|
||||
if (isPlistObject(tmp) == NO)
|
||||
{
|
||||
return NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue