ObjFW  Diff

Differences From Artifact [a242f67939]:

To Artifact [7c243af737]:


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
137
138

139
140

141
142

143
144
145
146
147
148
149
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
137

138
139

140
141

142
143
144
145
146
147
148
149







-
+




-
+




-
+


-
+




-
+




-
+


-
+

-
+

-
+







	[_stringValue release];

	[super dealloc];
}

- (OFString*)name
{
	OF_GETTER(_name, YES)
	OF_GETTER(_name, true)
}

- (OFString*)namespace
{
	OF_GETTER(_namespace, YES)
	OF_GETTER(_namespace, true)
}

- (OFString*)stringValue
{
	OF_GETTER(_stringValue, YES)
	OF_GETTER(_stringValue, true)
}

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

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

	attribute = object;

	if (![attribute->_name isEqual: _name])
		return NO;
		return false;
	if (attribute->_namespace != _namespace &&
	    ![attribute->_namespace isEqual: _namespace])
		return NO;
		return false;
	if (![attribute->_stringValue isEqual: _stringValue])
		return NO;
		return false;

	return YES;
	return true;
}

- (uint32_t)hash
{
	uint32_t hash;

	OF_HASH_INIT(hash);