Fixed compilation with gcc < 3.x

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17570 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-08-29 23:28:15 +00:00
parent e647d64d34
commit e8c70b7dc2
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2003-08-28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Minor correction to allow compilation with
gcc < 3.x.
2003-08-28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Cleanup some of the extra logs.

View file

@ -2586,15 +2586,12 @@ static NSImage *classesImage = nil;
while((key = [en nextObject]) != nil)
{
id customClass = [cm customClassForName: key];
id object = [self objectForName: key];
// put code here to repair old .gorm files if necessary.
NSDebugLog(@"customClass = %@",customClass);
id object = [self objectForName: key]; // put code here to repair old .gorm files if necessary.
NSString *superClass = [cm nonCustomSuperClassOf: customClass];
id <GSTemplate> template = [GSTemplateFactory templateForObject: RETAIN(object)
withClassName: RETAIN([customClass copy])
withSuperClassName: superClass];
NSDebugLog(@"customClass = %@",customClass);
NSDebugLog(@"object = %@, key = %@, className = %@", object, key, customClass);
[archiver replaceObject: object withObject: template];
}