Skip to content

Commit

Permalink
minor change in COmparator for new element print function support
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Dec 11, 2013
1 parent 0f5b132 commit bbb63e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/Comparator/src/Comparator/Comparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void Comparator::check( spec_reader::Specification& spec, file_reader::FileReade
std::shared_ptr< basic_element::Element > parent;
parent = getNextParent( element, node );
report.add( element );
report.print( element );
report.print( element, file.getPosition() - element->_data.size() );

while( ( node = element->next() ) != nullptr )
{
Expand Down Expand Up @@ -71,8 +71,6 @@ void Comparator::check( spec_reader::Specification& spec, file_reader::FileReade
LOG_TRACE( "[comparator] checked: " << element->_id << " = " << element->_dispValue << " (" << statusMap.at( element->_status ) << ") @ " << element << " << Previous: " << previous << " << Parent: " );
// LOG_COLOR( common::details::kColorMagenta, "[comparator] checked: " << element->_id << " = " << element->_dispValue << " (" << statusMap.at( element->_status ) << ") @ " << element << " << Previous: " << previous << " << Parent: " << parent << std::endl );

// if( ! skipElementCheck( element ) && parent != nullptr )
// parent->_childrenSize += element->_size;
updateParentSize( element );

checkGroupSize( element, file );
Expand All @@ -87,7 +85,7 @@ void Comparator::check( spec_reader::Specification& spec, file_reader::FileReade
}
else
LOG_TRACE( "[comparator] next parent: null" );
report.print( element );
report.print( element, file.getPosition() - size );
}

if( ! file.isEndOfFile() )
Expand Down

0 comments on commit bbb63e4

Please sign in to comment.