removed some C99-isms

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25137 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2007-05-10 20:25:15 +00:00
parent b0c18f717c
commit ecaea6d777
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,8 @@
2007-05-10 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSAnimation.m: removed some C99-isms
* Source/NSBitmapImageRep+GIF.m
* Source/NSBitmapImageRep+GIF.m : removed some C99-isms
* Source/NSDocument.m : removed some C99-isms
2007-05-10 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -565,12 +565,14 @@ withContentsOfURL: (NSURL *)url
- (NSFileWrapper *)fileWrapperOfType: (NSString *)type
error: (NSError **)error
{
NSData *data;
if (OVERRIDDEN(fileWrapperRepresentationOfType:))
{
return [self fileWrapperRepresentationOfType: type];
}
NSData *data = [self dataOfType: type error: error];
data = [self dataOfType: type error: error];
if (data == nil)
return nil;