Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-09 04:41:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-09 04:41:09 +0400
commit4f7bdc59d31e94bc97955c1efeef2a8fce0c8ecd (patch)
tree7e0a36829cf52ff260821ce02716727052b95d32 /source/blender/windowmanager
parent27d43f3fd3a6fbda95cdb87e4672fe34f19c2205 (diff)
style cleanup: spelling.
also remove large, duplicate comments from sunsky.h
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/WM_api.h2
-rw-r--r--source/blender/windowmanager/intern/wm.c2
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c4
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c2
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c6
5 files changed, 8 insertions, 8 deletions
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 */
}
}