ObjFW  Diff

Differences From Artifact [407b972aeb]:

  • File src/exceptions/OFUnboundPrefixException.h — part of check-in [44f45c2e35] at 2017-01-09 17:36:36 on branch trunk — Update copyright Forgot to add 2017, even though I already did quite some changes in 2017. (user: js size: 1746)

To Artifact [a71ff8c82b]:

  • File src/exceptions/OFUnboundPrefixException.h — part of check-in [0a73af49f0] at 2017-04-30 13:35:16 on branch trunk — Use nonatomic for properties and clean up This changes retaining behavior, meaning properties are not returned retained and autoreleased anymore, so a property returned from a getter now needs to be manually retained and autoreleased before calling the setter. However, this is rarely the case and not using atomic improves performance. (user: js size: 1754)

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
	OFString *_prefix;
	OFXMLParser *_parser;
}

/*!
 * The unbound prefix.
 */
@property (readonly, copy) OFString *prefix;

/*!
 * The parser which encountered the unbound prefix.
 */
@property (readonly, retain) OFXMLParser *parser;

/*!
 * @brief Creates a new, autoreleased unbound prefix exception.
 *
 * @param prefix The prefix which is unbound
 * @param parser The parser which encountered the unbound prefix
 * @return A new, autoreleased unbound prefix exception







|




|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
	OFString *_prefix;
	OFXMLParser *_parser;
}

/*!
 * The unbound prefix.
 */
@property (readonly, nonatomic) OFString *prefix;

/*!
 * The parser which encountered the unbound prefix.
 */
@property (readonly, nonatomic) OFXMLParser *parser;

/*!
 * @brief Creates a new, autoreleased unbound prefix exception.
 *
 * @param prefix The prefix which is unbound
 * @param parser The parser which encountered the unbound prefix
 * @return A new, autoreleased unbound prefix exception