Changeset 6141 for trunk/EDIT4/ED4_base.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/EDIT4/ED4_base.cxx (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_base.cxx
r5901 r6141 28 28 } 29 29 30 bool ED4_base::remove_deleted_child s()30 bool ED4_base::remove_deleted_children() 31 31 { 32 32 e4_assert(0); … … 34 34 } 35 35 36 bool ED4_terminal::remove_deleted_child s()36 bool ED4_terminal::remove_deleted_children() 37 37 { 38 38 if (flag.deleted) { 39 39 if (get_species_pointer() != 0) { 40 40 #if defined(DEBUG) 41 printf("ED4_terminal: has non-zero species_pointer in remove_deleted_child s(resetting to zero)\n");41 printf("ED4_terminal: has non-zero species_pointer in remove_deleted_children (resetting to zero)\n"); 42 42 #endif // DEBUG 43 43 set_species_pointer(0); … … 50 50 return false; 51 51 } 52 bool ED4_sequence_info_terminal::remove_deleted_child s()52 bool ED4_sequence_info_terminal::remove_deleted_children() 53 53 { 54 54 if (flag.deleted) { 55 55 if (get_species_pointer() != 0) { 56 56 #if defined(DEBUG) 57 printf("ED4_sequence_info_terminal: has non-zero species_pointer in remove_deleted_child s(resetting to zero)\n");57 printf("ED4_sequence_info_terminal: has non-zero species_pointer in remove_deleted_children (resetting to zero)\n"); 58 58 #endif // DEBUG 59 59 set_species_pointer(0); … … 67 67 } 68 68 69 bool ED4_manager::remove_deleted_child s()69 bool ED4_manager::remove_deleted_children() 70 70 { 71 71 int i; … … 76 76 for (i=0; i<children->members(); i++) { 77 77 ED4_base *child = children->member(i); 78 if (child->remove_deleted_child s()) {78 if (child->remove_deleted_children()) { 79 79 deletion_occurred = true; 80 goto restart; // because order of child smay have changed80 goto restart; // because order of children may have changed 81 81 } 82 82 } … … 89 89 } 90 90 #if defined(DEBUG) 91 printf("ED4_manager::remove_deleted_child s: I have no parent\n");91 printf("ED4_manager::remove_deleted_children: I have no parent\n"); 92 92 #endif // DEBUG 93 93 } … … 107 107 108 108 void ED4_manager::changed_by_database(void) { 109 remove_deleted_child s();109 remove_deleted_children(); 110 110 set_refresh(1); 111 111 if (parent) { … … 208 208 } 209 209 else { 210 e4_assert(0); // not prepa ted for that situation210 e4_assert(0); // not prepared for that situation 211 211 } 212 212 } … … 799 799 bool ED4_base::has_parent(ED4_manager *Parent) 800 800 { 801 // return true if 'parent' is a p erent of this801 // return true if 'parent' is a parent of this 802 802 803 803 if (is_manager()) { … … 1202 1202 AW_pos world_x, world_y; 1203 1203 1204 calc_world_coords( &world_x, &world_y ); // calculate world coordinates of current object1205 1206 *x -= world_x; // calculate relative coordinates by substracting world1207 *y -= world_y; // coords of current object1204 calc_world_coords( &world_x, &world_y ); // calculate world coordinates of current object 1205 1206 *x -= world_x; // calculate relative coordinates by subtracting world 1207 *y -= world_y; // coords of current object 1208 1208 } 1209 1209
