diff --git a/alib2str/src/tree/TreeToStringComposer.cpp b/alib2str/src/tree/TreeToStringComposer.cpp index d76d4651f27231e0c7446d2e9f168d876d7689ad..ce4e2d5a43c0c87cd4b3d5a26c5f1617047b0e94 100644 --- a/alib2str/src/tree/TreeToStringComposer.cpp +++ b/alib2str/src/tree/TreeToStringComposer.cpp @@ -26,9 +26,9 @@ void TreeToStringComposer::compose ( std::ostream & out, const RankedNode & node out << std::utos ( node.getSymbol ( ).getRank ( ).getData ( ) ); - for ( const RankedNode * node : node.getChildren ( ) ) { + for ( const RankedNode * child : node.getChildren ( ) ) { out << " "; - compose ( out, * node ); + compose ( out, * child ); } } @@ -46,9 +46,9 @@ void TreeToStringComposer::compose ( std::ostream & out, const alphabet::RankedS out << std::utos ( node.getSymbol ( ).getRank ( ).getData ( ) ); - for ( const RankedNode * node : node.getChildren ( ) ) { + for ( const RankedNode * child : node.getChildren ( ) ) { out << " "; - compose ( out, subtreeWildcard, * node ); + compose ( out, subtreeWildcard, * child ); } } } @@ -62,9 +62,9 @@ TreeToStringComposer::RegistratorWrapper < void, UnrankedTree > StringToStringCo void TreeToStringComposer::compose ( std::ostream & out, const UnrankedNode & node ) { alib::stringApi < alphabet::Symbol >::compose ( out, node.getSymbol ( ) ); - for ( const UnrankedNode * node : node.getChildren ( ) ) { + for ( const UnrankedNode * child : node.getChildren ( ) ) { out << " "; - compose ( out, * node ); + compose ( out, * child ); } out << " |"; @@ -82,9 +82,9 @@ void TreeToStringComposer::compose ( std::ostream & out, const alphabet::Symbol } else { alib::stringApi < alphabet::Symbol >::compose ( out, node.getSymbol ( ) ); - for ( const UnrankedNode * node : node.getChildren ( ) ) { + for ( const UnrankedNode * child : node.getChildren ( ) ) { out << " "; - compose ( out, subtreeWildcard, * node ); + compose ( out, subtreeWildcard, * child ); } out << " |";