From d736c927f11d4f6b7dbb8c6a1547702205d38da8 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 22 Nov 2013 21:21:56 +0100 Subject: [PATCH] Adjust exceptions to ObjFW API change. --- src/XMPPExceptions.h | 16 ++++++++-------- src/XMPPExceptions.m | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/XMPPExceptions.h b/src/XMPPExceptions.h index a795fe3..6b49e7f 100644 --- a/src/XMPPExceptions.h +++ b/src/XMPPExceptions.h @@ -35,7 +35,7 @@ #ifdef OF_HAVE_PROPERTIES /// \brief The connection the exception relates to -@property (readonly, assign) XMPPConnection *connection; +@property (readonly, retain) XMPPConnection *connection; #endif /** @@ -69,9 +69,9 @@ #ifdef OF_HAVE_PROPERTIES /// \brief The defined error condition specified by the stream error -@property (readonly, assign) OFString *condition; +@property (readonly, copy) OFString *condition; /// \brief The descriptive free-form text specified by the stream error -@property (readonly, assign) OFString *reason; +@property (readonly, copy) OFString *reason; #endif /** @@ -113,9 +113,9 @@ #ifdef OF_HAVE_PROPERTIES /// \brief The name of the stringprep profile that did not apply -@property (readonly, assign) OFString *profile; +@property (readonly, copy) OFString *profile; /// \brief The string that failed the stringprep profile -@property (readonly, assign) OFString *string; +@property (readonly, copy) OFString *string; #endif /** @@ -156,9 +156,9 @@ #ifdef OF_HAVE_PROPERTIES /// \brief The IDNA translation operation which failed -@property (readonly, assign) OFString *operation; +@property (readonly, copy) OFString *operation; /// \brief The string that could not be translated -@property (readonly, assign) OFString *string; +@property (readonly, copy) OFString *string; #endif /** @@ -199,7 +199,7 @@ #ifdef OF_HAVE_PROPERTIES /// \brief The reason the authentication failed -@property (readonly, assign) OFString *reason; +@property (readonly, copy) OFString *reason; #endif /** diff --git a/src/XMPPExceptions.m b/src/XMPPExceptions.m index e170cba..da48d9f 100644 --- a/src/XMPPExceptions.m +++ b/src/XMPPExceptions.m @@ -70,7 +70,7 @@ - (XMPPConnection*)connection { - OF_GETTER(_connection, false) + OF_GETTER(_connection, true) } @end @@ -129,12 +129,12 @@ - (OFString*)condition { - OF_GETTER(_condition, false) + OF_GETTER(_condition, true) } - (OFString*)reason { - OF_GETTER(_reason, false) + OF_GETTER(_reason, true) } @end @@ -194,12 +194,12 @@ - (OFString*)profile { - OF_GETTER(_profile, false) + OF_GETTER(_profile, true) } - (OFString*)string { - OF_GETTER(_string, false) + OF_GETTER(_string, true) } @end @@ -258,12 +258,12 @@ - (OFString*)operation { - OF_GETTER(_operation, false) + OF_GETTER(_operation, true) } - (OFString*)string { - OF_GETTER(_string, false) + OF_GETTER(_string, true) } @end @@ -317,6 +317,6 @@ - (OFString*)reason { - OF_GETTER(_reason, false) + OF_GETTER(_reason, true) } @end