diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-10-12 13:11:13 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-10-12 13:11:13 +0100 |
commit | ade86e496ea4bc27b6edab125bad9f5dc4bb3852 (patch) | |
tree | 81aae5427d06ae06be2968df5d025780206bf682 /amiga/tree.c | |
parent | 6ea52d0d9f423a13acc7c7fe015038a15a9636ff (diff) | |
download | netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.gz netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.bz2 |
Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary.
Diffstat (limited to 'amiga/tree.c')
-rw-r--r-- | amiga/tree.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index 5ef3a20d6..78777da43 100644 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -130,8 +130,7 @@ struct treeview_window *ami_tree_create(int flags, { struct treeview_window *twin; - twin = AllocVec(sizeof(struct treeview_window), - MEMF_PRIVATE | MEMF_CLEAR); + twin = AllocVecTags(sizeof(struct treeview_window), AVT_ClearWithValue, 0, TAG_DONE); if(!twin) { @@ -378,7 +377,7 @@ void ami_tree_menu(struct treeview_window *twin) { if(twin->menu) return; - if(twin->menu = AllocVec(sizeof(struct NewMenu) * AMI_TREE_MENU_ITEMS, MEMF_CLEAR)) + if(twin->menu = AllocVecTagList(sizeof(struct NewMenu) * AMI_TREE_MENU_ITEMS, NULL)) /* NB: Was not MEMF_PRIVATE */ { twin->menu[0].nm_Type = NM_TITLE; twin->menu_name[0] = ami_utf8_easy((char *)messages_get("Tree")); @@ -1301,7 +1300,7 @@ static void ami_tree_redraw_req(void *p) void ami_tree_redraw_request(int x, int y, int width, int height, void *data) { - struct ami_tree_redraw_req *atrr_data = AllocVec(sizeof(struct ami_tree_redraw_req), MEMF_CLEAR | MEMF_PRIVATE); + struct ami_tree_redraw_req *atrr_data = AllocVecTagList(sizeof(struct ami_tree_redraw_req), NULL); atrr_data->x = x; atrr_data->y = y; |