Index: src/OFStream.h ================================================================== --- src/OFStream.h +++ src/OFStream.h @@ -936,11 +936,11 @@ * @param string The string from which the data is written to the stream * @param encoding The encoding in which to write the string to the stream * @return The number of bytes written */ - (size_t)writeString: (OFString*)string - usingEncoding: (of_string_encoding_t)encoding; + encoding: (of_string_encoding_t)encoding; /*! * @brief Writes a string into the stream with a trailing newline. * * @param string The string from which the data is written to the stream @@ -955,11 +955,11 @@ * @param string The string from which the data is written to the stream * @param encoding The encoding in which to write the string to the stream * @return The number of bytes written */ - (size_t)writeLine: (OFString*)string - usingEncoding: (of_string_encoding_t)encoding; + encoding: (of_string_encoding_t)encoding; /*! * @brief Writes a formatted string into the stream. * * See printf for the format syntax. As an addition, %@ is available as format Index: src/OFStream.m ================================================================== --- src/OFStream.m +++ src/OFStream.m @@ -1370,15 +1370,15 @@ } - (size_t)writeString: (OFString*)string { return [self writeString: string - usingEncoding: OF_STRING_ENCODING_UTF_8]; + encoding: OF_STRING_ENCODING_UTF_8]; } - (size_t)writeString: (OFString*)string - usingEncoding: (of_string_encoding_t)encoding + encoding: (of_string_encoding_t)encoding { size_t length = [string cStringLengthWithEncoding: encoding]; [self writeBuffer: [string cStringWithEncoding: encoding] length: length]; @@ -1387,15 +1387,15 @@ } - (size_t)writeLine: (OFString*)string { return [self writeLine: string - usingEncoding: OF_STRING_ENCODING_UTF_8]; + encoding: OF_STRING_ENCODING_UTF_8]; } - (size_t)writeLine: (OFString*)string - usingEncoding: (of_string_encoding_t)encoding + encoding: (of_string_encoding_t)encoding { size_t stringLength = [string cStringLengthWithEncoding: encoding]; char *buffer; buffer = [self allocMemoryWithSize: stringLength + 1];