if nlabels == 0, it must not be absolute because otherwise the other
should also be absolute, in which case nlabes != 0.
}
if (chdiff != 0) {
- if (nlabels == 0 && !isAbsolute()) {
- return (NameComparisonResult(chdiff, 0,
- NameComparisonResult::NONE));
- } else {
- return (NameComparisonResult(chdiff, nlabels,
- NameComparisonResult::COMMONANCESTOR));
- }
+ return (NameComparisonResult(
+ chdiff, nlabels,
+ nlabels == 0 ? NameComparisonResult::NONE :
+ NameComparisonResult::COMMONANCESTOR));
}
--count;
++pos1;