Differences From Artifact [703949fdec]:
- File
src/OFXMLElement.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: 12794) [annotate] [blame] [check-ins using]
To Artifact [1f4a21c910]:
- File
src/OFXMLElement.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: 12838) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
39 40 41 42 43 44 45 | OFMutableDictionary OF_GENERIC(OFString*, OFString*) *_namespaces; OFMutableArray OF_GENERIC(OFXMLNode*) *_children; } /*! * The name of the element. */ | | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | OFMutableDictionary OF_GENERIC(OFString*, OFString*) *_namespaces; OFMutableArray OF_GENERIC(OFXMLNode*) *_children; } /*! * The name of the element. */ @property (nonatomic, copy) OFString *name; /*! * The namespace of the element. */ #ifndef __cplusplus @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *namespace; #else @property OF_NULLABLE_PROPERTY (nonatomic, copy, getter=namespace, setter=setNamespace:) OFString *namespace_; #endif /*! * The default namespace for the element to be used if there is no parent. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *defaultNamespace; /*! * @brief Creates a new XML element with the specified name. * * @param name The name for the element * @return A new autoreleased OFXMLElement with the specified element name */ |
︙ | ︙ |