From c9130e38e3747be08e76abfd3afbe0bcd1c9f320 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Oct 2023 13:07:58 +1100 Subject: [PATCH] Cleanup: spelling in comments --- intern/ghost/intern/GHOST_SystemCocoa.mm | 2 +- source/blender/blenlib/intern/string_cursor_utf8.c | 2 +- source/blender/blenloader/intern/versioning_280.cc | 10 +++++----- tools/check_source/check_spelling_config.py | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 6f70f278dd7..d3d36eb93a9 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -495,7 +495,7 @@ extern "C" int GHOST_HACK_getFirstFile(char buf[FIRSTFILEBUFLG]) } } -/* Explicitly opt-in to the secure codeing for the restorable state. +/* Explicitly opt-in to the secure coding for the restorable state. * * This is something that only has affect on macOS 12+, and is implicitly * enabled on macOS 14. diff --git a/source/blender/blenlib/intern/string_cursor_utf8.c b/source/blender/blenlib/intern/string_cursor_utf8.c index 06658652093..f049894ed4f 100644 --- a/source/blender/blenlib/intern/string_cursor_utf8.c +++ b/source/blender/blenlib/intern/string_cursor_utf8.c @@ -44,7 +44,7 @@ static eStrCursorDelimType cursor_delim_type_unicode(const uint uch) switch (uch) { case ',': case '.': - case 0x2026: /* Horizontal elipsis. */ + case 0x2026: /* Horizontal ellipsis. */ case 0x3002: /* CJK full width full stop. */ case 0xFF0C: /* CJK full width comma. */ case 0xFF61: /* CJK half width full stop. */ diff --git a/source/blender/blenloader/intern/versioning_280.cc b/source/blender/blenloader/intern/versioning_280.cc index acd77dcf107..d0e329cf450 100644 --- a/source/blender/blenloader/intern/versioning_280.cc +++ b/source/blender/blenloader/intern/versioning_280.cc @@ -2411,9 +2411,9 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain) } if (!MAIN_VERSION_FILE_ATLEAST(bmain, 280, 14)) { - /* This code fixes crashes when loading early 2.80 dev files, due to the lack of a master - * collection after removal of the versioning code handling the 'SceneCollection' data that was - * part of the very early 2.80 development (commit 23835a393c). + /* This code fixes crashes when loading early 2.80 development files, due to the lack of a + * master collection after removal of the versioning code handling the 'SceneCollection' data + * that was part of the very early 2.80 development (commit 23835a393c). * * NOTE: This code only ensures that there is no crash, since the whole collection hierarchy * from these files remain lost, these files will still need a lot of manual work if one want @@ -2422,8 +2422,8 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain) LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { if (scene->master_collection == nullptr) { scene->master_collection = BKE_collection_master_add(scene); - /* #BKE_layer_collection_sync accepts missing viewlayer in a scene, but not invalid ones - * where the first viewlayer's layercollection would not be for the Scene's master + /* #BKE_layer_collection_sync accepts missing view-layer in a scene, but not invalid ones + * where the first view-layer's layer-collection would not be for the Scene's master * collection. */ LISTBASE_FOREACH (ViewLayer *, view_layer, &scene->view_layers) { if (LayerCollection *first_layer_collection = static_cast( diff --git a/tools/check_source/check_spelling_config.py b/tools/check_source/check_spelling_config.py index 1cc1593bd69..af75a2b8646 100644 --- a/tools/check_source/check_spelling_config.py +++ b/tools/check_source/check_spelling_config.py @@ -322,6 +322,7 @@ dict_custom = { "rescale", "rescaled", "respecialized", + "restorable", "resynced", "resyncing", "retiming",