@@ -116,12 +116,11 @@ OFStream *file; OFINICategory *category = nil; OFString *line; @try { - file = [[OFURLHandler handlerForURL: URL] openItemAtURL: URL - mode: @"r"]; + file = [OFURLHandler openItemAtURL: URL mode: @"r"]; } @catch (OFOpenItemFailedException *e) { /* Handle missing file like an empty file */ if (e.errNo == ENOENT) return; @@ -160,13 +159,11 @@ } - (void)writeToURL: (OFURL *)URL encoding: (OFStringEncoding)encoding { void *pool = objc_autoreleasePoolPush(); - OFStream *file = [[OFURLHandler handlerForURL: URL] - openItemAtURL: URL - mode: @"w"]; + OFStream *file = [OFURLHandler openItemAtURL: URL mode: @"w"]; bool first = true; for (OFINICategory *category in _categories) if ([category of_writeToStream: file encoding: encoding