ObjFW  Diff

Differences From Artifact [6f8e28171c]:

To Artifact [15c7c9a7a5]:


114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
- (instancetype)init
{
	self = [super init];

	@try {
		_iVarsData = [[OFSecureData alloc]
		    initWithCount: sizeof(*_iVars)];
		_iVars = [_iVarsData items];

		[self of_resetState];
	} @catch (id e) {
		[self release];
		@throw e;
	}








|







114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
- (instancetype)init
{
	self = [super init];

	@try {
		_iVarsData = [[OFSecureData alloc]
		    initWithCount: sizeof(*_iVars)];
		_iVars = _iVarsData.mutableItems;

		[self of_resetState];
	} @catch (id e) {
		[self release];
		@throw e;
	}

142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
}

- (id)copy
{
	OFSHA1Hash *copy = [[OFSHA1Hash alloc] of_init];

	copy->_iVarsData = [_iVarsData copy];
	copy->_iVars = [copy->_iVarsData items];
	copy->_calculated = _calculated;

	return copy;
}

- (void)of_resetState
{







|







142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
}

- (id)copy
{
	OFSHA1Hash *copy = [[OFSHA1Hash alloc] of_init];

	copy->_iVarsData = [_iVarsData copy];
	copy->_iVars = copy->_iVarsData.mutableItems;
	copy->_calculated = _calculated;

	return copy;
}

- (void)of_resetState
{