Differences From Artifact [aa49ba568a]:
- File
src/OFMutableURL.m
— part of check-in
[2f4e0df8be]
at
2017-10-17 00:33:37
on branch trunk
— Do not use implicit method return types
Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (user: js, size: 2016) [annotate] [blame] [check-ins using]
To Artifact [514dff27bb]:
- File
src/OFMutableURL.m
— part of check-in
[0f995db06d]
at
2017-10-28 21:08:37
on branch trunk
— Make OFURL more generic
This removes the special handling dependent on the scheme. (user: js, size: 2086) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | * file. */ #include "config.h" #import "OFMutableURL.h" #import "OFURL+Private.h" #import "OFString.h" @implementation OFMutableURL @dynamic scheme, host, port, user, password, path, parameters, query, fragment; + (instancetype)URL { | > | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #import "OFMutableURL.h" #import "OFURL+Private.h" #import "OFNumber.h" #import "OFString.h" @implementation OFMutableURL @dynamic scheme, host, port, user, password, path, parameters, query, fragment; + (instancetype)URL { |
︙ | ︙ | |||
43 44 45 46 47 48 49 | - (void)setHost: (OFString *)host { OFString *old = _host; _host = [host copy]; [old release]; } | | > | > | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - (void)setHost: (OFString *)host { OFString *old = _host; _host = [host copy]; [old release]; } - (void)setPort: (OFNumber *)port { OFNumber *old = _port; _port = [port copy]; [old release]; } - (void)setUser: (OFString *)user { OFString *old = _user; _user = [user copy]; [old release]; |
︙ | ︙ |