Coding style.
This commit is contained in:
parent
2889711e69
commit
603d3bad7a
6 changed files with 24 additions and 13 deletions
|
@ -37,6 +37,7 @@
|
|||
XMPPConnection *_connection;
|
||||
OFString *_capsNode;
|
||||
}
|
||||
|
||||
#ifdef OF_HAVE_PROPERTIES
|
||||
/**
|
||||
* \brief The XMPPDiscoNodes this entity provides Services Discovery
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
name: (OFString*)name
|
||||
{
|
||||
return [[[self alloc] initWithCategory: category
|
||||
type: type
|
||||
type: type
|
||||
name: name] autorelease];
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
OFSortedList *_features;
|
||||
OFMutableDictionary *_childNodes;
|
||||
}
|
||||
|
||||
#ifdef OF_HAVE_PROPERTIES
|
||||
/// \brief The JID this node lives on
|
||||
@property (readonly) XMPPJID *JID;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
@interface XMPPMulticastDelegate: OFObject
|
||||
{
|
||||
OFDataArray *_delegates;
|
||||
size_t handlerIndex;
|
||||
size_t _handlerIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,8 +65,10 @@
|
|||
continue;
|
||||
|
||||
[_delegates removeItemAtIndex: i];
|
||||
if (i <= handlerIndex)
|
||||
handlerIndex--;
|
||||
|
||||
if (i <= _handlerIndex)
|
||||
_handlerIndex--;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -78,8 +80,9 @@
|
|||
id *items = [_delegates items];
|
||||
BOOL handled = NO;
|
||||
|
||||
for (handlerIndex = 0; handlerIndex < count; handlerIndex++) {
|
||||
id responder = items[handlerIndex];
|
||||
for (_handlerIndex = 0; _handlerIndex < count; _handlerIndex++) {
|
||||
id responder = items[_handlerIndex];
|
||||
|
||||
if (![responder respondsToSelector: selector])
|
||||
continue;
|
||||
|
||||
|
@ -87,8 +90,11 @@
|
|||
[responder methodForSelector: selector];
|
||||
|
||||
handled |= imp(responder, selector, object);
|
||||
// Update count and items, since the handler might have
|
||||
// changed them.
|
||||
|
||||
/*
|
||||
* Update count and items, since the handler might have changed
|
||||
* them.
|
||||
*/
|
||||
count = [_delegates count];
|
||||
items = [_delegates items];
|
||||
}
|
||||
|
@ -104,8 +110,9 @@
|
|||
id *items = [_delegates items];
|
||||
BOOL handled = NO;
|
||||
|
||||
for (handlerIndex = 0; handlerIndex < count; handlerIndex++) {
|
||||
id responder = items[handlerIndex];
|
||||
for (_handlerIndex = 0; _handlerIndex < count; _handlerIndex++) {
|
||||
id responder = items[_handlerIndex];
|
||||
|
||||
if (![responder respondsToSelector: selector])
|
||||
continue;
|
||||
|
||||
|
@ -113,8 +120,11 @@
|
|||
[responder methodForSelector: selector];
|
||||
|
||||
handled |= imp(responder, selector, object1, object2);
|
||||
// Update count and items, since the handler might have
|
||||
// changed them.
|
||||
|
||||
/*
|
||||
* Update count and items, since the handler might have changed
|
||||
* them.
|
||||
*/
|
||||
count = [_delegates count];
|
||||
items = [_delegates items];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue