fix code style

This commit is contained in:
jay
2018-01-13 20:44:29 +08:00
committed by Beat Küng
parent 32482e7644
commit 76bf70121c
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -58,9 +58,8 @@ DataValidatorGroup::DataValidatorGroup(unsigned siblings) :
next = new DataValidator();
if(i == 0) {
_first = next;
}
else {
prev->sibling(next);
} else {
prev->setSibling(next);
}
prev = next;
}
@@ -87,7 +86,7 @@ DataValidator *DataValidatorGroup::add_new_validator()
if (!validator) {
return nullptr;
}
_last->sibling(validator);
_last->setSibling(validator);
_last = validator;
_last->set_timeout(_timeout_interval_us);
return _last;