From ade86e496ea4bc27b6edab125bad9f5dc4bb3852 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 12 Oct 2013 13:11:13 +0100 Subject: Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary. --- amiga/tree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'amiga/tree.c') 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; -- cgit v1.2.3