Differences From Artifact [06c926080e]:
- File src/OFXMLElement.h — part of check-in [f62c04e5d8] at 2015-06-14 12:43:01 on branch trunk — Minor interface fixes (user: js, size: 13761) [annotate] [blame] [check-ins using]
To Artifact [f0a48e322d]:
- File
src/OFXMLElement.h
— part of check-in
[80e1a9655b]
at
2015-06-17 22:11:31
on branch trunk
— Add OF_NULLABLE_PROPERTY
This is necessary to make GCC (>= 4.6 and Apple GCC) happy as they don't
like the list of property attributes ending in a comma. (user: js, size: 13816) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
39 40 41 42 43 44 45 | OFMutableDictionary OF_GENERIC(OFString*, OFString*) *_namespaces; OFMutableArray OF_GENERIC(OFXMLNode*) *_children; } #ifdef OF_HAVE_PROPERTIES @property (copy) OFString *name; # ifdef __cplusplus | | | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | OFMutableDictionary OF_GENERIC(OFString*, OFString*) *_namespaces; OFMutableArray OF_GENERIC(OFXMLNode*) *_children; } #ifdef OF_HAVE_PROPERTIES @property (copy) OFString *name; # ifdef __cplusplus @property OF_NULLABLE_PROPERTY (copy, getter=namespace, setter=setNamespace:) OFString *namespace_; # else @property OF_NULLABLE_PROPERTY (copy) OFString *namespace; # endif @property OF_NULLABLE_PROPERTY (copy) OFString *defaultNamespace; @property OF_NULLABLE_PROPERTY (copy, readonly) OFArray OF_GENERIC(OFXMLAttribute*) *attributes; @property OF_NULLABLE_PROPERTY (copy) OFArray OF_GENERIC(OFXMLNode*) *children; #endif /*! * @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 |
︙ | ︙ |