Skip to content

Commit

Permalink
add minor modification and clean in Comparator
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Dec 6, 2013
1 parent 26c7322 commit a448fb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/Comparator/src/Comparator/Comparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ bool Comparator::isInUnorderedGroup( const ShPtrElement element )
{
if( ! parent->_isOrdered )
return true;
parent = parent->getParent();
}
return false;
}
Expand Down Expand Up @@ -133,7 +134,7 @@ Comparator::ShPtrElement Comparator::getNextParent( const ShPtrElement element,
{
ShPtrElement parent = element->getParent();
bool isLastInGroup = ( node->next() == nullptr && ( parent == nullptr || ( parent->_isOrdered || ( ! parent->_isOrdered && element->_status == eStatusInvalidButSkip ) ) ) );
bool isNotSkipped = ( element->_status != eStatusInvalidButOptional && element->_status != eStatusInvalidButSkip && element->_status != eStatusInvalidForIteration );
bool isNotSkipped = ( element->_status != eStatusInvalidButOptional && element->_status != eStatusInvalidButSkip && element->_status != eStatusInvalidForIteration && element->_status != eStatusSkip );

if( element->_isGroup && ! element->_checkedGroup && isNotSkipped )
return element;
Expand Down

0 comments on commit a448fb8

Please sign in to comment.