From 4f7bdc59d31e94bc97955c1efeef2a8fce0c8ecd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 9 Mar 2012 00:41:09 +0000 Subject: style cleanup: spelling. also remove large, duplicate comments from sunsky.h --- source/blender/windowmanager/WM_api.h | 2 +- source/blender/windowmanager/intern/wm.c | 2 +- source/blender/windowmanager/intern/wm_event_system.c | 4 ++-- source/blender/windowmanager/intern/wm_keymap.c | 2 +- source/blender/windowmanager/intern/wm_operators.c | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index eecc9cab028..21ea1bf909f 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -230,7 +230,7 @@ wmOperator *WM_operator_last_redo(const struct bContext *C); #define WM_FILESEL_FILES (1 << 4) - /* operator as a python command (resultuing string must be free'd) */ + /* operator as a python command (resultuing string must be freed) */ char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struct PointerRNA *opptr, int all_args); void WM_operator_bl_idname(char *to, const char *from); void WM_operator_py_idname(char *to, const char *from); diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index c6c67e22bfd..3aa974bd9f4 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -76,7 +76,7 @@ void WM_operator_free(wmOperator *op) #ifdef WITH_PYTHON if(op->py_instance) { - /* do this first incase there are any __del__ functions or + /* do this first in case there are any __del__ functions or * similar that use properties */ BPY_DECREF(op->py_instance); } diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 7bc0557b631..591b8b1103b 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -744,7 +744,7 @@ static int wm_operator_init_from_last(wmWindowManager *wm, wmOperator *op) wmOperator *lastop; for(lastop= wm->operators.last; lastop; lastop= lastop->prev) { - /* equality check is a bit paranoid but just incase */ + /* equality check is a bit paranoid but just in case */ if((op != lastop) && (op->type == (lastop->type))) { break; } @@ -1701,7 +1701,7 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers) /* XXX code this for all modal ops, and ensure free only happens here */ /* modal ui handler can be tagged to be freed */ - if(BLI_findindex(handlers, handler) != -1) { /* could be free'd already by regular modal ops */ + if(BLI_findindex(handlers, handler) != -1) { /* could be freed already by regular modal ops */ if(handler->flag & WM_HANDLER_DO_FREE) { BLI_remlink(handlers, handler); wm_event_free_handler(handler); diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c index d603262227f..d34a7d46e54 100644 --- a/source/blender/windowmanager/intern/wm_keymap.c +++ b/source/blender/windowmanager/intern/wm_keymap.c @@ -621,7 +621,7 @@ static void wm_keymap_diff_update(ListBase *lb, wmKeyMap *defaultmap, wmKeyMap * /* name id's are for storing general or multiple keymaps, space/region ids are same as DNA_space_types.h */ -/* gets free'd in wm.c */ +/* gets freed in wm.c */ wmKeyMap *WM_keymap_list_find(ListBase *lb, const char *idname, int spaceid, int regionid) { diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 290046d59ab..cab4b014c3e 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -469,7 +469,7 @@ void WM_operator_py_idname(char *to, const char *from) BLI_strncpy(to+(ofs+1), sep+4, OP_MAX_TYPENAME); } else { - /* should not happen but support just incase */ + /* should not happen but support just in case */ BLI_strncpy(to, from, OP_MAX_TYPENAME); } } @@ -490,7 +490,7 @@ void WM_operator_bl_idname(char *to, const char *from) BLI_strncpy(to+(ofs+4), sep+1, OP_MAX_TYPENAME); } else { - /* should not happen but support just incase */ + /* should not happen but support just in case */ BLI_strncpy(to, from, OP_MAX_TYPENAME); } } @@ -666,7 +666,7 @@ void WM_operator_properties_free(PointerRNA *ptr) if(properties) { IDP_FreeProperty(properties); MEM_freeN(properties); - ptr->data= NULL; /* just incase */ + ptr->data= NULL; /* just in case */ } } -- cgit v1.2.3