mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-13 00:02:02 +08:00
Updated to "instancetype" type
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
@property(nonatomic, assign) id<GCDWebDAVServerDelegate> delegate;
|
||||
@property(nonatomic, copy) NSArray* allowedFileExtensions; // Default is nil i.e. all file extensions are allowed
|
||||
@property(nonatomic) BOOL showHiddenFiles; // Default is NO
|
||||
- (id)initWithUploadDirectory:(NSString*)path;
|
||||
- (instancetype)initWithUploadDirectory:(NSString*)path;
|
||||
@end
|
||||
|
||||
@interface GCDWebDAVServer (Subclassing)
|
||||
|
||||
@@ -452,7 +452,7 @@ static inline xmlNodePtr _XMLChildWithName(xmlNodePtr child, const xmlChar* name
|
||||
|
||||
@synthesize uploadDirectory=_uploadDirectory, delegate=_delegate, allowedFileExtensions=_allowedExtensions, showHiddenFiles=_showHidden;
|
||||
|
||||
- (id)initWithUploadDirectory:(NSString*)path {
|
||||
- (instancetype)initWithUploadDirectory:(NSString*)path {
|
||||
if ((self = [super init])) {
|
||||
_uploadDirectory = [[path stringByStandardizingPath] copy];
|
||||
GCDWebDAVServer* __unsafe_unretained server = self;
|
||||
|
||||
Reference in New Issue
Block a user