mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Cleanup ... avoid accessing the 'isa' variable directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4531875573
commit
313cf13c67
19 changed files with 150 additions and 123 deletions
|
@ -462,7 +462,9 @@ static NSURLProtocol *placeholder = nil;
|
|||
{
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
if (isa != abstractClass && isa != placeholderClass)
|
||||
Class c = object_getClass(self);
|
||||
|
||||
if (c != abstractClass && c != placeholderClass)
|
||||
{
|
||||
_NSURLProtocolInternal = NSZoneCalloc([self zone],
|
||||
1, sizeof(Internal));
|
||||
|
@ -475,7 +477,9 @@ static NSURLProtocol *placeholder = nil;
|
|||
cachedResponse: (NSCachedURLResponse *)cachedResponse
|
||||
client: (id <NSURLProtocolClient>)client
|
||||
{
|
||||
if (isa == abstractClass || isa == placeholderClass)
|
||||
Class c = object_getClass(self);
|
||||
|
||||
if (c == abstractClass || c == placeholderClass)
|
||||
{
|
||||
unsigned count;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue