ObjFW  Diff

Differences From Artifact [04b01cd2af]:

  • File src/OFXMLAttribute.m — part of check-in [e1e7ffa903] at 2011-09-22 23:25:42 on branch trunk — Exceptions are now autoreleased.

    This is safe as an "exception loop" can't happen, since if allocating
    an exception fails, it throws an OFAllocFailedException which is
    preallocated and can always be thrown.

    So, the worst case would be that an autorelease of an exception fails,
    triggering an OFOutOfMemoryException for which there is no memory,
    resulting in an OFAllocFailedException to be thrown. (user: js, size: 3649) [annotate] [blame] [check-ins using]

To Artifact [bdb655cad5]:


103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
}

- (OFString*)stringValue
{
	return [[stringValue copy] autorelease];
}

- (intmax_t)decimalValue
{
	return [stringValue decimalValue];
}

- (uintmax_t)hexadecimalValue
{
	return [stringValue hexadecimalValue];
}

- (float)floatValue
{
	return [stringValue floatValue];
}

- (double)doubleValue
{
	return [stringValue doubleValue];
}

- (BOOL)isEqual: (id)object
{
	OFXMLAttribute *otherAttribute;

	if (![object isKindOfClass: [OFXMLAttribute class]])
		return NO;








<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







103
104
105
106
107
108
109




















110
111
112
113
114
115
116
}

- (OFString*)stringValue
{
	return [[stringValue copy] autorelease];
}





















- (BOOL)isEqual: (id)object
{
	OFXMLAttribute *otherAttribute;

	if (![object isKindOfClass: [OFXMLAttribute class]])
		return NO;