mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:30:49 +00:00
Replace direct use of the isa pointer with a call to object_getClass()
to make David happy. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33545 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bd8a409d6b
commit
5c93b41e6d
15 changed files with 60 additions and 37 deletions
|
@ -295,22 +295,22 @@
|
|||
return nil;
|
||||
}
|
||||
|
||||
if ([isa _bitmapIsPNG: imageData])
|
||||
if ([object_getClass(self) _bitmapIsPNG: imageData])
|
||||
return [self _initBitmapFromPNG: imageData];
|
||||
|
||||
if ([isa _bitmapIsPNM: imageData])
|
||||
if ([object_getClass(self) _bitmapIsPNM: imageData])
|
||||
return [self _initBitmapFromPNM: imageData
|
||||
errorMessage: NULL];
|
||||
|
||||
if ([isa _bitmapIsJPEG: imageData])
|
||||
if ([object_getClass(self) _bitmapIsJPEG: imageData])
|
||||
return [self _initBitmapFromJPEG: imageData
|
||||
errorMessage: NULL];
|
||||
|
||||
if ([isa _bitmapIsGIF: imageData])
|
||||
if ([object_getClass(self) _bitmapIsGIF: imageData])
|
||||
return [self _initBitmapFromGIF: imageData
|
||||
errorMessage: NULL];
|
||||
|
||||
if ([isa _bitmapIsICNS: imageData])
|
||||
if ([object_getClass(self) _bitmapIsICNS: imageData])
|
||||
return [self _initBitmapFromICNS: imageData];
|
||||
|
||||
image = NSTiffOpenDataRead((char *)[imageData bytes], [imageData length]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue