ui/common/toolbar.c

changeset 1016
ccde46662db7
parent 973
aa39a986da78
equal deleted inserted replaced
1015:b459361d98ad 1016:ccde46662db7
40 40
41 41
42 void uic_toolbar_init(void) { 42 void uic_toolbar_init(void) {
43 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16); 43 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16);
44 for(int i=0;i<8;i++) { 44 for(int i=0;i<8;i++) {
45 toolbar_defaults[i] = cxLinkedListCreateSimple(CX_STORE_POINTERS); 45 toolbar_defaults[i] = cxLinkedListCreate(NULL, CX_STORE_POINTERS);
46 } 46 }
47 } 47 }
48 48
49 static char* nl_strdup(const char* str) { 49 static char* nl_strdup(const char* str) {
50 return str ? strdup(str) : NULL; 50 return str ? strdup(str) : NULL;

mercurial