diff --git a/src/xmlwrite.cpp b/src/xmlwrite.cpp --- a/src/xmlwrite.cpp +++ b/src/xmlwrite.cpp @@ -750,9 +750,7 @@ void Mesh::XMLSave(const char *docname, xmlNewProp(xmlnodes, BAD_CAST "target_length", BAD_CAST text.str().c_str()); } - for (vector::const_iterator i=nodes.begin(); - i!=nodes.end(); - i++) { + for (vector::const_iterator i=nodes.begin(); i!=nodes.end(); i++) { (*i)->XMLAdd(xmlnodes) ; } @@ -797,9 +795,7 @@ void Mesh::XMLSave(const char *docname, xmlNewProp(xmlcells, BAD_CAST "nchem", BAD_CAST text.str().c_str()); } - for (vector::const_iterator i=cells.begin(); - i!=cells.end(); - i++) { + for (vector::const_iterator i=cells.begin(); i!=cells.end(); i++) { (*i)->XMLAdd(xmlcells) ; } @@ -813,9 +809,7 @@ void Mesh::XMLSave(const char *docname, } - for (list::const_iterator i=walls.begin(); - i!=walls.end(); - i++) { + for (list::const_iterator i=walls.begin(); i!=walls.end(); i++) { (*i)->XMLAdd(xmlwalls) ; } @@ -985,13 +979,9 @@ void Mesh::XMLReadGeometry(const xmlNode boundary_polygon->ConstructNeighborList(); boundary_polygon->ConstructConnections(); - for (vector::iterator c=cells.begin(); - c!=cells.end(); - c++) { - + for (vector::iterator c=cells.begin(); c!=cells.end(); c++) { (*c)->ConstructNeighborList(); (*c)->ConstructConnections(); - } shuffled_cells.clear(); @@ -1018,9 +1008,7 @@ void Mesh::XMLReadNodes(xmlNode *root) xmlNode *cur = root; cur = cur->xmlChildrenNode; - for (vector::iterator i=nodes.begin(); - i!=nodes.end(); - i++) { + for (vector::iterator i=nodes.begin(); i!=nodes.end(); i++) { delete *i; } @@ -1108,9 +1096,7 @@ void Mesh::XMLReadWalls(xmlNode *root, v xmlNode *cur = root; cur = cur->xmlChildrenNode; - for (list::iterator i=walls.begin(); - i!=walls.end(); - i++) { + for (list::iterator i=walls.begin(); i!=walls.end(); i++) { delete *i; } @@ -1425,9 +1411,7 @@ void Mesh::XMLReadNodeSetsToNodes(xmlNod void Mesh::XMLReadNodeSets(xmlNode *root) { - for (vector::iterator i=node_sets.begin(); - i!=node_sets.end(); - i++) { + for (vector::iterator i=node_sets.begin(); i!=node_sets.end(); i++) { delete *i; } @@ -1455,10 +1439,7 @@ void Mesh::XMLReadNodeSets(xmlNode *root void Mesh::XMLReadCells(xmlNode *root) { - - for (vector::iterator i=cells.begin(); - i!=cells.end(); - i++) { + for (vector::iterator i=cells.begin(); i!=cells.end(); i++) { delete *i; } @@ -1467,7 +1448,6 @@ void Mesh::XMLReadCells(xmlNode *root) delete boundary_polygon; - xmlNode *cur = root->xmlChildrenNode; while (cur!=NULL) {