From 723e733ed5415f0e82d736296059065d3c6c29ba Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 12 Nov 2012 16:20:41 +0000 Subject: [PATCH] Minor fixes to comments, formatting etc. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46030 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/muimaster/classes/list.c | 19 ++++++++----------- workbench/libs/muimaster/classes/text.c | 4 ++-- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/workbench/libs/muimaster/classes/list.c b/workbench/libs/muimaster/classes/list.c index dda187dc1d..79aba3be5d 100644 --- a/workbench/libs/muimaster/classes/list.c +++ b/workbench/libs/muimaster/classes/list.c @@ -315,11 +315,8 @@ static void FreeListFormat(struct MUI_ListData *data) FreeVec(data->ci); data->ci = NULL; } - if (data->preparses) - { - FreeVec(data->preparses); - data->preparses = NULL; - } + FreeVec(data->preparses); + data->preparses = NULL; if (data->strings) { FreeVec(data->strings - 1); @@ -480,7 +477,7 @@ static void DisplayEntry(struct IClass *cl, Object *obj, int entry_pos) } /************************************************************************** - Determine the dims of a single entry and adapt the columinfo according + Determine the dims of a single entry and adapt the columninfo according to it. pos might be ENTRY_TITLE. Returns 0 if pos entry needs to be redrawn after this operation, 1 if all entries need to be redrawn. **************************************************************************/ @@ -1287,7 +1284,7 @@ static VOID List_DrawEntry(struct IClass *cl, Object *obj, int entry_pos, struct MUI_ListData *data = INST_DATA(cl, obj); int col, x1, x2; - /* To be surem we don't draw anything if there is no title */ + /* To be sure we don't draw anything if there is no title */ if (entry_pos == ENTRY_TITLE && !data->title) return; @@ -1978,7 +1975,7 @@ IPTR List__MUIM_Select(struct IClass *cl, Object *obj, struct MUIP_List_Select *msg) { struct MUI_ListData *data = INST_DATA(cl, obj); - LONG pos,i,count,selcount=0,state=0; + LONG pos, i, count, selcount=0, state=0; /* Establish the range of entries affected */ switch (msg->pos) @@ -2043,7 +2040,7 @@ IPTR List__MUIM_Select(struct IClass *cl, Object *obj, if (msg->seltype != MUIV_List_Select_Ask) { data->update = 1; - MUI_Redraw(obj,MADF_DRAWUPDATE); + MUI_Redraw(obj, MADF_DRAWUPDATE); } return 0; @@ -2120,7 +2117,7 @@ IPTR List__MUIM_Insert(struct IClass *cl, Object *obj, if (!(lentry = AllocListEntry(data))) { /* Panic, but we must be in a consistent state, so remove - ** the space where the following list entries should have gone + * the space where the following list entries should have gone */ RemoveListEntries(data, pos, until - pos); return ~0; @@ -2320,7 +2317,7 @@ IPTR List__MUIM_SelectChange(struct IClass *cl, Object *obj, MUIM_List_CreateImage Called by a List subclass in its Setup method. Connects an Area subclass object to the list, much like an object gets -connected to a window. List call Setup and AskMinMax on that object, +connected to a window. List calls Setup and AskMinMax on that object, keeps a reference to it (that reference will be returned). Text engine will dereference that pointer and draw the object with its default size. diff --git a/workbench/libs/muimaster/classes/text.c b/workbench/libs/muimaster/classes/text.c index c65a7acf0f..c7f2d65e3f 100644 --- a/workbench/libs/muimaster/classes/text.c +++ b/workbench/libs/muimaster/classes/text.c @@ -464,7 +464,7 @@ IPTR Text__MUIM_Draw(struct IClass *cl, Object *obj, } /************************************************************************** -MUIM_Export : to export an objects "contents" to a dataspace object. +MUIM_Export : to export an object's "contents" to a dataspace object. **************************************************************************/ IPTR Text__MUIM_Export(struct IClass *cl, Object *obj, struct MUIP_Export *msg) @@ -484,7 +484,7 @@ IPTR Text__MUIM_Export(struct IClass *cl, Object *obj, /************************************************************************** -MUIM_Import : to import an objects "contents" from a dataspace object. +MUIM_Import : to import an object's "contents" from a dataspace object. **************************************************************************/ IPTR Text__MUIM_Import(struct IClass *cl, Object *obj, struct MUIP_Import *msg) -- 2.11.4.GIT