ObjFW  Diff

Differences From Artifact [86d4782143]:

To Artifact [0ff2c07a09]:


56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
static OF_INLINE void
resolve_attr_namespace(OFXMLAttribute *attr, OFString *prefix, OFString *ns,
    OFArray *namespaces, Class isa)
{
	OFString *attr_ns;
	OFString *attr_prefix = attr->namespace;

	if ([[attr name] isEqual: @"xmlns"] && attr_prefix == nil) {
		[attr->namespace release];
		attr->namespace = nil;
		return;
	}

	attr_ns = namespace_for_prefix(
	    (attr_prefix != nil ? attr_prefix : prefix), namespaces);

	if ((attr_prefix != nil && attr_ns == nil) ||
	    (ns != nil && attr_ns == nil))
		@throw [OFUnboundNamespaceException newWithClass: isa
							  prefix: attr_prefix];

	[attr->namespace release];
	attr->namespace = [attr_ns retain];
}








|
<
<

|
<
|
<

|
<







56
57
58
59
60
61
62
63


64
65

66

67
68

69
70
71
72
73
74
75
static OF_INLINE void
resolve_attr_namespace(OFXMLAttribute *attr, OFString *prefix, OFString *ns,
    OFArray *namespaces, Class isa)
{
	OFString *attr_ns;
	OFString *attr_prefix = attr->namespace;

	if (attr_prefix == nil)


		return;


	attr_ns = namespace_for_prefix(attr_prefix, namespaces);


	if ((attr_prefix != nil && attr_ns == nil))

		@throw [OFUnboundNamespaceException newWithClass: isa
							  prefix: attr_prefix];

	[attr->namespace release];
	attr->namespace = [attr_ns retain];
}