mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +00:00
Fix typo and nil reference
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@15131 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
feae00e114
commit
45aafd7755
3 changed files with 11 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
* EOAccess/EOModel.m: Appplied David Ayers patch for programmatic
|
||||
model manipulation. Fixed typo. Use NSFileManager rather than
|
||||
mkdir(). Tidied some use of autorelease for memory efficiency etc.
|
||||
* EOControl/EOGenericRecord.m: update to use GSFindInstanceVariable()
|
||||
|
||||
2002-11-26 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
|
||||
|
|
|
@ -313,8 +313,11 @@ NSString *EOEntityLoadedNotification = @"EOEntityLoadedNotification";
|
|||
NSAssert(name,@"No entityt name");
|
||||
|
||||
entity = [_entitiesByName objectForKey: name];
|
||||
entity = [self _verifyBuiltEntityObject: entity
|
||||
named: name];
|
||||
if (entiry != nil)
|
||||
{
|
||||
entity = [self _verifyBuiltEntityObject: entity
|
||||
named: name];
|
||||
}
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
@ -1036,8 +1039,8 @@ NSString *EOEntityLoadedNotification = @"EOEntityLoadedNotification";
|
|||
//OK
|
||||
[self loadAllModelObjects];
|
||||
[self willChange];
|
||||
ASSIGN(_path,path);
|
||||
[self setName: [[path lastPathComponents] stringByDeletingPathExtension]];
|
||||
ASSIGN(_path, path);
|
||||
[self setName: [[path lastPathComponent] stringByDeletingPathExtension]];
|
||||
}
|
||||
|
||||
- (EOEntity*) _entityForClass: (Class)aClass
|
||||
|
|
|
@ -181,8 +181,8 @@ static const char _c_id[2] = { _C_ID, NULL };
|
|||
//used to allow derived object implementation
|
||||
- (BOOL)_infoForInstanceVariableNamed: (NSString*)name
|
||||
retType: (const char**)type
|
||||
retSize: (unsigned*)size
|
||||
retOffset: (unsigned*)offset
|
||||
retSize: (unsigned int*)size
|
||||
retOffset: (int*)offset
|
||||
{
|
||||
BOOL ok;
|
||||
|
||||
|
@ -192,7 +192,7 @@ static const char _c_id[2] = { _C_ID, NULL };
|
|||
retSize:size
|
||||
retOffset:offset];
|
||||
*/
|
||||
ok = GSInstanceVariableInfo(self, name, type, size, offset);
|
||||
ok = GSFindInstanceVariable(self, [name cString], type, size, offset);
|
||||
|
||||
EOFLOGObjectLevelArgs(@"EOGenericRecordKVC",
|
||||
@"Super InstanceVar named %@:%s",
|
||||
|
|
Loading…
Reference in a new issue