Differences From Artifact [5188a3f0dd]:
- File
src/OFURL.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: 3176) [annotate] [blame] [check-ins using]
To Artifact [336f088c44]:
- File
src/OFURL.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: 3264) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 | uint16_t _port; OFString *_user, *_password, *_path, *_parameters, *_query, *_fragment; } /*! * The scheme part of the URL. */ | | | | | | | | | | 32 33 34 35 36 37 38 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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | uint16_t _port; OFString *_user, *_password, *_path, *_parameters, *_query, *_fragment; } /*! * The scheme part of the URL. */ @property (nonatomic, copy) OFString *scheme; /*! * The host part of the URL. */ @property (nonatomic, copy) OFString *host; /*! * The port part of the URL. */ @property uint16_t port; /*! * The user part of the URL. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *user; /*! * The password part of the URL. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *password; /*! * The path part of the URL. */ @property (nonatomic, copy) OFString *path; /*! * The parameters part of the URL. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *parameters; /*! * The query part of the URL. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *query; /*! * The fragment part of the URL. */ @property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *fragment; /*! * @brief Creates a new URL. * * @return A new, autoreleased OFURL */ + (instancetype)URL; |
︙ | ︙ |