Overview
Comment: | Remove OF_UNAVAILABLE from two -[init] methods
These were unavailable in the immutable class, but available in the |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
dae363ef82a4d0e271b1c7a761f30c60 |
User & Date: | js on 2018-02-16 22:25:08 |
Other Links: | manifest | tags |
Context
2018-02-16
| ||
23:25 | TestsAppDelegate: Fix #ifdef check-in: 248fd739a5 user: js tags: trunk | |
22:25 | Remove OF_UNAVAILABLE from two -[init] methods check-in: dae363ef82 user: js tags: trunk | |
21:43 | Simplify .travis.yml a lot check-in: a43bd84674 user: js tags: trunk | |
Changes
Deleted src/OFData+Private.h version [95baed75e2].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified src/OFData.h from [e35dc22fa9] to [1b99b6d639].
︙ | ︙ | |||
173 174 175 176 177 178 179 | * the Base64-encoded string. * * @param string The string with the Base64-encoded data * @return A new autoreleased OFData */ + (instancetype)dataWithBase64EncodedString: (OFString *)string; | < < | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | * the Base64-encoded string. * * @param string The string with the Base64-encoded data * @return A new autoreleased OFData */ + (instancetype)dataWithBase64EncodedString: (OFString *)string; /*! * @brief Initialized an already allocated OFData with the specified `count` * items of size 1. * * @param items The items to store in the OFData * @param count The number of items * @return An initialized OFData |
︙ | ︙ |
Modified src/OFData.m from [b491272801] to [f8e15d9a7d].
︙ | ︙ | |||
18 19 20 21 22 23 24 | #include "config.h" #include <stdlib.h> #include <string.h> #include <limits.h> #import "OFData.h" | < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include "config.h" #include <stdlib.h> #include <string.h> #include <limits.h> #import "OFData.h" #import "OFDictionary.h" #ifdef OF_HAVE_FILES # import "OFFile.h" # import "OFFileManager.h" #endif #import "OFStream.h" #import "OFString.h" |
︙ | ︙ | |||
111 112 113 114 115 116 117 | } + (instancetype)dataWithBase64EncodedString: (OFString *)string { return [[[self alloc] initWithBase64EncodedString: string] autorelease]; } | < < < < < < < < < < | 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | } + (instancetype)dataWithBase64EncodedString: (OFString *)string { return [[[self alloc] initWithBase64EncodedString: string] autorelease]; } - (instancetype)initWithItems: (const void *)items count: (size_t)count { return [self initWithItems: items itemSize: 1 count: count]; } |
︙ | ︙ |
Modified src/OFMutableData.m from [2e4450a75d] to [419f5baa46].
︙ | ︙ | |||
18 19 20 21 22 23 24 | #include "config.h" #include <stdlib.h> #include <string.h> #include <limits.h> #import "OFMutableData.h" | < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include "config.h" #include <stdlib.h> #include <string.h> #include <limits.h> #import "OFMutableData.h" #import "OFString.h" #import "OFInvalidArgumentException.h" #import "OFOutOfMemoryException.h" #import "OFOutOfRangeException.h" @implementation OFMutableData |
︙ | ︙ | |||
50 51 52 53 54 55 56 | { return [[[self alloc] initWithItemSize: itemSize capacity: capacity] autorelease]; } - (instancetype)init { | | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | { return [[[self alloc] initWithItemSize: itemSize capacity: capacity] autorelease]; } - (instancetype)init { self = [super init]; _itemSize = 1; return self; } - (instancetype)initWithItemSize: (size_t)itemSize { self = [super init]; @try { if (itemSize == 0) @throw [OFInvalidArgumentException exception]; _itemSize = itemSize; } @catch (id e) { |
︙ | ︙ | |||
83 84 85 86 87 88 89 | return [self initWithItemSize: 1 capacity: capacity]; } - (instancetype)initWithItemSize: (size_t)itemSize capacity: (size_t)capacity { | | | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | return [self initWithItemSize: 1 capacity: capacity]; } - (instancetype)initWithItemSize: (size_t)itemSize capacity: (size_t)capacity { self = [super init]; @try { if (itemSize == 0) @throw [OFInvalidArgumentException exception]; _items = [self allocMemoryWithSize: itemSize count: capacity]; |
︙ | ︙ |
Modified src/OFMutableURL.h from [257d83f102] to [2450b23c35].
︙ | ︙ | |||
139 140 141 142 143 144 145 | /*! * @brief Creates a new mutable URL. * * @return A new, autoreleased OFMutableURL */ + (instancetype)URL; | < < < < < < < | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | /*! * @brief Creates a new mutable URL. * * @return A new, autoreleased OFMutableURL */ + (instancetype)URL; /*! * @brief Converts the mutable URL to an immutable URL. */ - (void)makeImmutable; @end OF_ASSUME_NONNULL_END |
Modified src/OFMutableURL.m from [9fc55dab5b] to [5ffb066ab5].
︙ | ︙ | |||
17 18 19 20 21 22 23 | #include "config.h" #import "OFMutableURL.h" #import "OFArray.h" #import "OFNumber.h" #import "OFString.h" | < < < < < < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #include "config.h" #import "OFMutableURL.h" #import "OFArray.h" #import "OFNumber.h" #import "OFString.h" #import "OFInvalidFormatException.h" extern void of_url_verify_escaped(OFString *, OFCharacterSet *); @implementation OFMutableURL @dynamic scheme, URLEncodedScheme, host, URLEncodedHost, port, user; @dynamic URLEncodedUser, password, URLEncodedPassword, path, URLEncodedPath; @dynamic pathComponents, query, URLEncodedQuery, fragment, URLEncodedFragment; + (instancetype)URL { return [[[self alloc] init] autorelease]; } - (void)setScheme: (OFString *)scheme { void *pool = objc_autoreleasePoolPush(); OFString *old = _URLEncodedScheme; _URLEncodedScheme = [[scheme stringByURLEncodingWithAllowedCharacters: [OFCharacterSet URLSchemeAllowedCharacterSet]] copy]; |
︙ | ︙ |
Deleted src/OFURL+Private.h version [7e89c80ead].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < |
Modified src/OFURL.h from [2b01f4ba2c] to [fe71aaca70].
︙ | ︙ | |||
191 192 193 194 195 196 197 | * appened if there is no slash yet * @return An Initialized OFURL */ + (instancetype)fileURLWithPath: (OFString *)path isDirectory: (bool)isDirectory; #endif | < < | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | * appened if there is no slash yet * @return An Initialized OFURL */ + (instancetype)fileURLWithPath: (OFString *)path isDirectory: (bool)isDirectory; #endif /*! * @brief Initializes an already allocated OFURL with the specified string. * * @param string A string describing a URL * @return An initialized OFURL */ - (instancetype)initWithString: (OFString *)string; |
︙ | ︙ |
Modified src/OFURL.m from [85c5197345] to [5197d0902a].
︙ | ︙ | |||
17 18 19 20 21 22 23 | #include "config.h" #include <stdlib.h> #include <string.h> #import "OFURL.h" | < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #include "config.h" #include <stdlib.h> #include <string.h> #import "OFURL.h" #import "OFArray.h" #import "OFNumber.h" #import "OFString.h" #import "OFXMLElement.h" #ifdef OF_HAVE_FILES # import "OFFileManager.h" |
︙ | ︙ | |||
381 382 383 384 385 386 387 | isDirectory: (bool)isDirectory { return [[[self alloc] initFileURLWithPath: path isDirectory: isDirectory] autorelease]; } #endif | < < < < < < < < < < | 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | isDirectory: (bool)isDirectory { return [[[self alloc] initFileURLWithPath: path isDirectory: isDirectory] autorelease]; } #endif - (instancetype)initWithString: (OFString *)string { char *UTF8String, *UTF8String2 = NULL; self = [super init]; @try { |
︙ | ︙ |