--- parser3/src/classes/string.C 2024/09/07 15:01:38 1.252 +++ parser3/src/classes/string.C 2024/09/07 16:30:26 1.253 @@ -21,7 +21,7 @@ #include "pa_vregex.h" #include "pa_charsets.h" -volatile const char * IDENT_STRING_C="$Id: string.C,v 1.252 2024/09/07 15:01:38 moko Exp $"; +volatile const char * IDENT_STRING_C="$Id: string.C,v 1.253 2024/09/07 16:30:26 moko Exp $"; // class @@ -278,8 +278,7 @@ static Table& split_vertical(ArrayString table+=row; } } else { // left - ArrayString::Iterator i(pieces); - while(i.has_next()) { + for(ArrayString::Iterator i(pieces); i; ) { Table::element_type row(new ArrayString); *row+=i.next(); table+=row; @@ -296,7 +295,7 @@ static Table& split_horizontal(ArrayStri for(int i=pieces.count(); --i>=0; ) *row+=pieces[i]; } else { // left - for(ArrayString::Iterator i(pieces); i.has_next(); ) + for(ArrayString::Iterator i(pieces); i; ) *row+=i.next(); } table+=row;