From 3d5d7564a79132376afe18bfe0797e1b7bd53a49 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 3 Feb 2012 09:04:54 +0100 Subject: [PATCH] Clean up properties. --- src/XMPPConnection.h | 4 ++-- src/XMPPExceptions.h | 16 ++++++++-------- src/XMPPSRVLookup.h | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/XMPPConnection.h b/src/XMPPConnection.h index 91213ad..1b24d46 100644 --- a/src/XMPPConnection.h +++ b/src/XMPPConnection.h @@ -86,9 +86,9 @@ @property (copy) OFString *username, *password, *server, *domain, *resource; @property (copy) OFString *privateKeyFile, *certificateFile; @property (copy, readonly) XMPPJID *JID; -@property (assign) uint16_t port; +@property uint16_t port; @property (readonly, retain, getter=socket) OFTCPSocket *sock; -@property (assign) BOOL encryptionRequired; +@property BOOL encryptionRequired; @property (readonly) BOOL encrypted; @property (readonly) BOOL streamOpen; #endif diff --git a/src/XMPPExceptions.h b/src/XMPPExceptions.h index 7d6dc50..6ffe56d 100644 --- a/src/XMPPExceptions.h +++ b/src/XMPPExceptions.h @@ -35,7 +35,7 @@ #ifdef OF_HAVE_PROPERTIES /// The connection the exception relates to -@property (readonly, nonatomic) XMPPConnection *connection; +@property (readonly, assign) XMPPConnection *connection; #endif /** @@ -74,9 +74,9 @@ #ifdef OF_HAVE_PROPERTIES /// The defined error condition specified by the stream error -@property (readonly, nonatomic) OFString *condition; +@property (readonly, assign) OFString *condition; /// The descriptive free-form text specified by the stream error -@property (readonly, nonatomic) OFString *reason; +@property (readonly, assign) OFString *reason; #endif /** @@ -123,9 +123,9 @@ #ifdef OF_HAVE_PROPERTIES /// The name of the stringprep profile that did not apply -@property (readonly, nonatomic) OFString *profile; +@property (readonly, assign) OFString *profile; /// The string that failed the stringprep profile -@property (readonly, nonatomic) OFString *string; +@property (readonly, assign) OFString *string; #endif /** @@ -171,9 +171,9 @@ #ifdef OF_HAVE_PROPERTIES /// The IDNA translation operation which failed -@property (readonly, nonatomic) OFString *operation; +@property (readonly, assign) OFString *operation; /// The string that could not be translated -@property (readonly, nonatomic) OFString *string; +@property (readonly, assign) OFString *string; #endif /** @@ -218,7 +218,7 @@ #ifdef OF_HAVE_PROPERTIES /// The reason the authentication failed -@property (readonly, nonatomic) OFString *reason; +@property (readonly, assign) OFString *reason; #endif /** diff --git a/src/XMPPSRVLookup.h b/src/XMPPSRVLookup.h index a686a84..566aced 100644 --- a/src/XMPPSRVLookup.h +++ b/src/XMPPSRVLookup.h @@ -36,10 +36,10 @@ } #ifdef OF_HAVE_PROPERTIES -@property (readonly, assign) uint16_t priority; -@property (readonly, assign) uint16_t weight; -@property (assign) uint32_t accumulatedWeight; -@property (readonly, assign) uint16_t port; +@property (readonly) uint16_t priority; +@property (readonly) uint16_t weight; +@property uint32_t accumulatedWeight; +@property (readonly) uint16_t port; @property (readonly, copy) OFString *target; #endif