#include "SUIT_DataObjectKey.h"
-#include <iostream> // for cout in dump()
-
/*!
Constructor
*/
void SUIT_DataObject::dump( const int indent ) const
{
QString strIndent = QString().fill( ' ', indent ); // indentation string
- std::cout << strIndent << name() << std::endl; // dump to cout
+ printf( "%s%s\n", strIndent.latin1(), name().latin1() );
for ( DataObjectListIterator it( myChildren ); it.current(); ++it ) // iterate all children
it.current()->dump( indent + 2 ); // dump every child with indent + 2 spaces
}
template <class SrcItem, class TrgItem, class TreeData>
TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td )
{
- // printf( "--- synchronize : %d ---\n", ++gSync );
-
if( td.isEqual( r1, r2 ) )
{
+ // update items themselves
+ td.updateItem( r2 );
+
+ // iterate 'siblings' (direct children)
QValueList< DiffItem< SrcItem, TrgItem > > d;
diffSiblings( r1, r2, d, td );