Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_base.cxx

    r5901 r6141  
    2828} 
    2929 
    30 bool ED4_base::remove_deleted_childs() 
     30bool ED4_base::remove_deleted_children() 
    3131{ 
    3232    e4_assert(0); 
     
    3434} 
    3535 
    36 bool ED4_terminal::remove_deleted_childs() 
     36bool ED4_terminal::remove_deleted_children() 
    3737{ 
    3838    if (flag.deleted) { 
    3939        if (get_species_pointer() != 0) { 
    4040#if defined(DEBUG) 
    41             printf("ED4_terminal: has non-zero species_pointer in remove_deleted_childs (resetting to zero)\n"); 
     41            printf("ED4_terminal: has non-zero species_pointer in remove_deleted_children (resetting to zero)\n"); 
    4242#endif // DEBUG 
    4343            set_species_pointer(0); 
     
    5050    return false; 
    5151} 
    52 bool ED4_sequence_info_terminal::remove_deleted_childs() 
     52bool ED4_sequence_info_terminal::remove_deleted_children() 
    5353{ 
    5454    if (flag.deleted) { 
    5555        if (get_species_pointer() != 0) { 
    5656#if defined(DEBUG) 
    57             printf("ED4_sequence_info_terminal: has non-zero species_pointer in remove_deleted_childs (resetting to zero)\n"); 
     57            printf("ED4_sequence_info_terminal: has non-zero species_pointer in remove_deleted_children (resetting to zero)\n"); 
    5858#endif // DEBUG 
    5959            set_species_pointer(0); 
     
    6767} 
    6868 
    69 bool ED4_manager::remove_deleted_childs() 
     69bool ED4_manager::remove_deleted_children() 
    7070{ 
    7171    int  i; 
     
    7676    for (i=0; i<children->members(); i++) { 
    7777        ED4_base *child = children->member(i); 
    78         if (child->remove_deleted_childs()) { 
     78        if (child->remove_deleted_children()) { 
    7979            deletion_occurred = true; 
    80             goto restart;       // because order of childs may have changed 
     80            goto restart;       // because order of children may have changed 
    8181        } 
    8282    } 
     
    8989        } 
    9090#if defined(DEBUG) 
    91         printf("ED4_manager::remove_deleted_childs: I have no parent\n"); 
     91        printf("ED4_manager::remove_deleted_children: I have no parent\n"); 
    9292#endif // DEBUG 
    9393    } 
     
    107107 
    108108void ED4_manager::changed_by_database(void) { 
    109     remove_deleted_childs(); 
     109    remove_deleted_children(); 
    110110    set_refresh(1); 
    111111    if (parent) { 
     
    208208    } 
    209209    else { 
    210         e4_assert(0); // not prepated for that situation 
     210        e4_assert(0); // not prepared for that situation 
    211211    } 
    212212} 
     
    799799bool ED4_base::has_parent(ED4_manager *Parent) 
    800800{ 
    801     // return true if 'parent' is a perent of this 
     801    // return true if 'parent' is a parent of this 
    802802 
    803803    if (is_manager()) { 
     
    12021202    AW_pos   world_x, world_y; 
    12031203 
    1204     calc_world_coords( &world_x, &world_y );                                            // calculate world coordinates of current object 
    1205  
    1206     *x -= world_x;                                                                              // calculate relative coordinates by substracting world 
    1207     *y -= world_y;                                                                              // coords of current object 
     1204    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 
    12081208} 
    12091209