ObjFW  Check-in [889f63ab01]

Overview
Comment:Fix a warning with Apple GCC 4.0.1.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 889f63ab01ecb3496b38e8d5218223cbdd617024c6c7638e353a4d9eca118326
User & Date: js on 2010-06-06 23:31:32
Other Links: manifest | tags
Context
2010-06-12
19:47
Several OFXMLParser improvements. See details. check-in: 9d79d92d9a user: js tags: trunk
2010-06-06
23:31
Fix a warning with Apple GCC 4.0.1. check-in: 889f63ab01 user: js tags: trunk
22:38
Fix partial parsing when only half of an UTF-8 char has been received. check-in: b236334eaa user: js tags: trunk
Changes

Modified src/OFXMLParser.h from [c146f53264] to [d8f4c394d4].

143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
 * \return A new, autoreleased OFXMLParser
 */
+ xmlParser;

/**
 * \return The delegate that is used by the XML parser
 */
- (id)delegate;

/**
 * Sets the delegate the OFXMLParser should use.
 *
 * \param delegate The delegate to use
 */
- (void)setDelegate: (OFObject <OFXMLParserDelegate>*)delegate;







|







143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
 * \return A new, autoreleased OFXMLParser
 */
+ xmlParser;

/**
 * \return The delegate that is used by the XML parser
 */
- (OFObject <OFXMLParserDelegate>*)delegate;

/**
 * Sets the delegate the OFXMLParser should use.
 *
 * \param delegate The delegate to use
 */
- (void)setDelegate: (OFObject <OFXMLParserDelegate>*)delegate;

Modified src/OFXMLParser.m from [11560d2f92] to [04405d22e4].

146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
	[attrName release];
	[attrPrefix release];
	[previous release];

	[super dealloc];
}

- (id)delegate
{
	return [[delegate retain] autorelease];
}

- (void)setDelegate: (OFObject <OFXMLParserDelegate>*)delegate_
{
	[delegate_ retain];







|







146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
	[attrName release];
	[attrPrefix release];
	[previous release];

	[super dealloc];
}

- (OFObject <OFXMLParserDelegate>*)delegate
{
	return [[delegate retain] autorelease];
}

- (void)setDelegate: (OFObject <OFXMLParserDelegate>*)delegate_
{
	[delegate_ retain];