ObjFW  Check-in [1824567235]

Overview
Comment:Get rid of useless -[bindDefaultNamespace:] in OFXMLElement.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 182456723537ff9dd517b7908be3dfb73faa16743cb13756ab55f9e7010400b6
User & Date: js on 2011-03-31 11:44:24
Other Links: manifest | tags
Context
2011-03-31
11:45
Rename -[stringValue] to -[XMLString] in OFXMLElement. check-in: 5c80b8838f user: js tags: trunk
11:44
Get rid of useless -[bindDefaultNamespace:] in OFXMLElement. check-in: 1824567235 user: js tags: trunk
02:20
Throw an exception if parsing did not finish in +[elementWithString:]. check-in: 566996e9a6 user: js tags: trunk
Changes

Modified src/OFXMLElement.h from [c2e1606d42] to [1af9ccf632].

310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
/**
 * Sets the default namespace for the element.
 *
 * \param ns The default namespace for the element
 */
- (void)setDefaultNamespace: (OFString*)ns;

/**
 * Binds the default namespace for the element.
 *
 * \param ns The default namespace for the element
 */
- (void)bindDefaultNamespace: (OFString*)ns;

/**
 * Adds a child to the OFXMLElement.
 *
 * \param child Another OFXMLElement which is added as a child
 */
- (void)addChild: (OFXMLElement*)child;








<
<
<
<
<
<
<







310
311
312
313
314
315
316







317
318
319
320
321
322
323
/**
 * Sets the default namespace for the element.
 *
 * \param ns The default namespace for the element
 */
- (void)setDefaultNamespace: (OFString*)ns;








/**
 * Adds a child to the OFXMLElement.
 *
 * \param child Another OFXMLElement which is added as a child
 */
- (void)addChild: (OFXMLElement*)child;

Modified src/OFXMLElement.m from [5b1a6ebbe9] to [5f27189ab0].

634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
						       selector: _cmd];

	OFString *old = defaultNamespace;
	defaultNamespace = [ns_ copy];
	[old release];
}

- (void)bindDefaultNamespace: (OFString*)ns_
{
	[self setDefaultNamespace: ns_];
	[self addAttributeWithName: @"xmlns"
		       stringValue: ns_];
}

- (void)addChild: (OFXMLElement*)child
{
	if (name == nil)
		@throw [OFInvalidArgumentException newWithClass: isa
						       selector: _cmd];

	if (children == nil)







<
<
<
<
<
<
<







634
635
636
637
638
639
640







641
642
643
644
645
646
647
						       selector: _cmd];

	OFString *old = defaultNamespace;
	defaultNamespace = [ns_ copy];
	[old release];
}








- (void)addChild: (OFXMLElement*)child
{
	if (name == nil)
		@throw [OFInvalidArgumentException newWithClass: isa
						       selector: _cmd];

	if (children == nil)