mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
ccdc185f97
commit
61bc059d4a
19 changed files with 150 additions and 123 deletions
|
@ -3046,7 +3046,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
|
||||
/* xxx We should make sure that TARGET is a valid object. */
|
||||
/* Not actually a Proxy, but we avoid the warnings "id" would have made. */
|
||||
m = GSGetMethod(((NSDistantObject*)o)->isa, sel, YES, YES);
|
||||
m = GSGetMethod(object_getClass(o), sel, YES, YES);
|
||||
/* Perhaps I need to be more careful in the line above to get the
|
||||
version of the method types that has the type qualifiers in it.
|
||||
Search the protocols list. */
|
||||
|
@ -3883,9 +3883,10 @@ static NSLock *cached_proxies_gate = nil;
|
|||
|
||||
/* Don't assert (IisValid); */
|
||||
NSParameterAssert(aTarget > 0);
|
||||
NSParameterAssert(aProxy==nil || aProxy->isa == distantObjectClass);
|
||||
NSParameterAssert(aProxy==nil || [aProxy connectionForProxy] == self);
|
||||
NSParameterAssert(aProxy==nil || aTarget == aProxy->_handle);
|
||||
NSParameterAssert(aProxy == nil
|
||||
|| object_getClass(aProxy) == distantObjectClass);
|
||||
NSParameterAssert(aProxy == nil || [aProxy connectionForProxy] == self);
|
||||
NSParameterAssert(aProxy == nil || aTarget == aProxy->_handle);
|
||||
|
||||
M_LOCK(IrefGate);
|
||||
node = GSIMapNodeForKey(IremoteProxies, (GSIMapKey)aTarget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue