Modernize coding style

This commit is contained in:
Jonathan Schleifer 2018-11-05 22:22:12 +01:00
parent d6f82eb3d5
commit 3438e3569b
No known key found for this signature in database
GPG key ID: D83A76BFE376345E
37 changed files with 407 additions and 422 deletions

View file

@ -81,11 +81,11 @@ OF_ASSUME_NONNULL_BEGIN
+ (instancetype)discoEntityWithConnection: (XMPPConnection *)connection
capsNode: (OFString *)capsNode;
- initWithJID: (XMPPJID *)JID
node: (nullable OFString *)node OF_UNAVAILABLE;
- initWithJID: (XMPPJID *)JID
node: (nullable OFString *)node
name: (nullable OFString *)name OF_UNAVAILABLE;
- (instancetype)initWithJID: (XMPPJID *)JID
node: (nullable OFString *)node OF_UNAVAILABLE;
- (instancetype)initWithJID: (XMPPJID *)JID
node: (nullable OFString *)node
name: (nullable OFString *)name OF_UNAVAILABLE;
/*!
* @brief Initializes an already allocated XMPPDiscoEntity with the specified
@ -95,7 +95,7 @@ OF_ASSUME_NONNULL_BEGIN
* This must already be bound to a resource)
* @return An initialized XMPPDiscoEntity
*/
- initWithConnection: (XMPPConnection *)connection;
- (instancetype)initWithConnection: (XMPPConnection *)connection;
/*!
* @brief Initializes an already allocated XMPPDiscoEntity with the specified
@ -106,8 +106,9 @@ OF_ASSUME_NONNULL_BEGIN
* @param capsNode The node advertised for the entity's capabilites
* @return An initialized XMPPDiscoEntity
*/
- initWithConnection: (XMPPConnection *)connection
capsNode: (nullable OFString *)capsNode OF_DESIGNATED_INITIALIZER;
- (instancetype)initWithConnection: (XMPPConnection *)connection
capsNode: (nullable OFString *)capsNode
OF_DESIGNATED_INITIALIZER;
/*!
* @brief Adds a XMPPDiscoNode to provide responses for.