Index: src/OFURL.h ================================================================== --- src/OFURL.h +++ src/OFURL.h @@ -179,22 +179,22 @@ * * @param path The local file path * @return A new, autoreleased OFURL */ + (instancetype)fileURLWithPath: (OFString *)path; -#endif /*! * @brief Creates a new URL with the specified local file path. * * @param path The local file path * @param isDirectory Whether the path is a directory, in which case a slash is * appened if there is no slash yet * @return An Initialized OFURL */ -- (instancetype)initFileURLWithPath: (OFString *)path - isDirectory: (bool)isDirectory; ++ (instancetype)fileURLWithPath: (OFString *)path + isDirectory: (bool)isDirectory; +#endif - (instancetype)init OF_UNAVAILABLE; /*! * @brief Initializes an already allocated OFURL with the specified string. @@ -235,12 +235,12 @@ * @param path The local file path * @param isDirectory Whether the path is a directory, in which case a slash is * appened if there is no slash yet * @return An Initialized OFURL */ -+ (instancetype)fileURLWithPath: (OFString *)path - isDirectory: (bool)isDirectory; +- (instancetype)initFileURLWithPath: (OFString *)path + isDirectory: (bool)isDirectory; #endif @end @interface OFCharacterSet (URLCharacterSets) #ifdef OF_HAVE_CLASS_PROPERTIES