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/AWT/AWT_db_browser.cxx

    r6075 r6141  
    561561        if (!is_root) aww->insert_selection(id, GBS_global_string("%-*s   parent container", maxkeylen, ".."), BROWSE_CMD_GO_UP); 
    562562 
    563         // collect childs and sort them 
    564  
    565         vector<list_entry> sorted_childs; 
     563        // collect children and sort them 
     564 
     565        vector<list_entry> sorted_children; 
    566566 
    567567        for (GBDATA *child = GB_child(node); child; child = GB_nextChild(child)) { 
     
    580580            char *content = 0; 
    581581            if (entry.type == GB_DB) { 
    582                 // the childs listed here are displayed behind the container entry 
    583                 const char *known_childs[] = { "@name", "name", "key_name", "alignment_name", "group_name", "key_text", 0 }; 
    584                 for (int i = 0; known_childs[i]; ++i) { 
    585                     GBDATA *gb_known = GB_entry(entry.gbd, known_childs[i]); 
     582                // the children listed here are displayed behind the container entry 
     583                const char *known_children[] = { "@name", "name", "key_name", "alignment_name", "group_name", "key_text", 0 }; 
     584                for (int i = 0; known_children[i]; ++i) { 
     585                    GBDATA *gb_known = GB_entry(entry.gbd, known_children[i]); 
    586586 
    587587                    if (gb_known && GB_read_type(gb_known) != GB_DB && GB_nextEntry(gb_known) == 0) { // exactly one child exits 
    588                         content = GBS_global_string_copy("[%s=%s]", known_childs[i], GB_read_as_string(gb_known)); 
     588                        content = GBS_global_string_copy("[%s=%s]", known_children[i], GB_read_as_string(gb_known)); 
    589589                        break; 
    590590                    } 
     
    609609            free(content); 
    610610 
    611             sorted_childs.push_back(entry); 
     611            sorted_children.push_back(entry); 
    612612        } 
    613613 
    614614        list_entry::sort_order = (SortOrder)aw_root->awar(AWAR_DBB_ORDER)->read_int(); 
    615615        if (list_entry::sort_order != SORT_NONE) { 
    616             sort(sorted_childs.begin(), sorted_childs.end()); 
    617         } 
    618  
    619         for (vector<list_entry>::iterator ch = sorted_childs.begin(); ch != sorted_childs.end(); ++ch) { 
     616            sort(sorted_children.begin(), sorted_children.end()); 
     617        } 
     618 
     619        for (vector<list_entry>::iterator ch = sorted_children.begin(); ch != sorted_children.end(); ++ch) { 
    620620            const list_entry&  entry            = *ch; 
    621621            const char        *key_name         = entry.key_name;