Another round of code modernization

This commit is contained in:
Damiano Galassi committed 2015-08-24 20:04:19 +02:00
1 parent e5095a611a
commit 6b9a075236
17 files changed
+144 -181

No files matched your search

+14 -10
View File
@@ -173,7 +173,7 @@
{
hSpacing = newHSpacing;
_isEdited = YES;
[_updatedProperty setValue:@"True" forKey:@"hSpacing"];
_updatedProperty[@"hSpacing"] = @YES;
}
- (uint64_t)vSpacing {
@@ -184,7 +184,7 @@
{
vSpacing = newVSpacing;
_isEdited = YES;
[_updatedProperty setValue:@"True" forKey:@"vSpacing"];
_updatedProperty[@"vSpacing"] = @YES;
}
@synthesize offsetX;
@@ -205,10 +205,12 @@
_newProfile = newProfile;
_isEdited = YES;
if (_newProfile == _origProfile)
[_updatedProperty setValue:@"False" forKey:@"profile"];
else
[_updatedProperty setValue:@"True" forKey:@"profile"];
if (_newProfile == _origProfile) {
_updatedProperty[@"profile"] = @NO;
}
else {
_updatedProperty[@"profile"] = @YES;
}
}
- (uint8_t)newLevel {
@@ -220,10 +222,12 @@
_newLevel = newLevel;
_isEdited = YES;
if (_newLevel == _origLevel)
[_updatedProperty setValue:@"False" forKey:@"level"];
else
[_updatedProperty setValue:@"True" forKey:@"level"];
if (_newLevel == _origLevel) {
_updatedProperty[@"level"] = @NO;
}
else {
_updatedProperty[@"level"] = @YES;
}
}
- (void)encodeWithCoder:(NSCoder *)coder