diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-18 01:35:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-18 01:36:44 +0300 |
commit | bb6765f28fdde392976c38712c851d0ef8c75a2c (patch) | |
tree | 500342ef54f60bb73b429e74355139665bff500f /source/blender/windowmanager | |
parent | 0c58ad8a34c55344262ac74fce87888beb464155 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 2 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 9f70d05cc8a..1a505b91ac5 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -727,7 +727,7 @@ enum { }; /** - * Identifying jobs by owner alone is unreliable, this isnt saved, + * Identifying jobs by owner alone is unreliable, this isn't saved, * order can change (keep 0 for 'any'). */ enum { diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 660e502a3d7..e8a41b04d84 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -561,7 +561,7 @@ char *WM_prop_pystring_assign(bContext *C, PointerRNA *ptr, PropertyRNA *prop, i char *lhs = C ? wm_prop_pystring_from_context(C, ptr, prop, index) : NULL; if (lhs == NULL) { - /* fallback to bpy.data.foo[id] if we dont find in the context */ + /* Fallback to `bpy.data.foo[id]` if we don't find in the context. */ lhs = RNA_path_full_property_py(CTX_data_main(C), ptr, prop, index); } @@ -1149,7 +1149,7 @@ int WM_operator_filesel(bContext *C, wmOperator *op, const wmEvent *UNUSED(event bool WM_operator_filesel_ensure_ext_imtype(wmOperator *op, const struct ImageFormatData *im_format) { char filepath[FILE_MAX]; - /* dont NULL check prop, this can only run on ops with a 'filepath' */ + /* Don't NULL check prop, this can only run on ops with a 'filepath'. */ PropertyRNA *prop = RNA_struct_find_property(op->ptr, "filepath"); RNA_property_string_get(op->ptr, prop, filepath); if (BKE_image_path_ensure_ext_from_imformat(filepath, im_format)) { diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index d75ba7865bd..25232e8e3d5 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -701,8 +701,8 @@ void wm_window_ghostwindows_ensure(wmWindowManager *wm) if (wm_init_state.size_x == 0) { wm_get_screensize(&wm_init_state.size_x, &wm_init_state.size_y); - /* note!, this isnt quite correct, active screen maybe offset 1000s if PX, - * we'd need a wm_get_screensize like function that gives offset, + /* NOTE: this isn't quite correct, active screen maybe offset 1000s if PX, + * we'd need a #wm_get_screensize like function that gives offset, * in practice the window manager will likely move to the correct monitor */ wm_init_state.start_x = 0; wm_init_state.start_y = 0; @@ -1694,7 +1694,7 @@ void WM_event_remove_timer(wmWindowManager *wm, wmWindow *UNUSED(win), wmTimer * LISTBASE_FOREACH (wmEvent *, event, &win->event_queue) { if (event->customdata == wt) { event->customdata = NULL; - event->type = EVENT_NONE; /* timer users customdata, dont want NULL == NULL */ + event->type = EVENT_NONE; /* Timer users customdata, don't want `NULL == NULL`. */ } } } |