From 4e45265dc6cafe0bf6f36a14a469288183059858 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 30 Nov 2021 09:04:50 +1100 Subject: Cleanup: spelling in comments & strings --- source/blender/editors/asset/intern/asset_indexer.cc | 6 +++--- source/blender/editors/asset/intern/asset_ops.cc | 2 +- source/blender/editors/include/ED_file_indexer.h | 4 ++-- source/blender/editors/interface/interface.c | 2 +- source/blender/editors/interface/interface_view.cc | 2 +- source/blender/editors/sculpt_paint/paint_intern.h | 3 +-- source/blender/editors/space_file/asset_catalog_tree_view.cc | 2 +- source/blender/editors/space_file/filelist.c | 2 +- source/blender/editors/space_file/filesel.c | 4 ++-- source/blender/editors/undo/memfile_undo.c | 2 +- 10 files changed, 14 insertions(+), 15 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/asset/intern/asset_indexer.cc b/source/blender/editors/asset/intern/asset_indexer.cc index 43951b4b714..8472b33d3af 100644 --- a/source/blender/editors/asset/intern/asset_indexer.cc +++ b/source/blender/editors/asset/intern/asset_indexer.cc @@ -532,11 +532,11 @@ struct AssetIndex { const int UNKNOWN_VERSION = -1; /** - * `blender::io::serialize::Value` represeting the contents of an index file. + * `blender::io::serialize::Value` representing the contents of an index file. * - * Value is used over ObjectValue as the contents of the index could be corrupted and doesn't + * Value is used over #ObjectValue as the contents of the index could be corrupted and doesn't * represent an object. In case corrupted files are detected the `get_version` would return - * UNKNOWN_VERSION.` + * `UNKNOWN_VERSION`. */ std::unique_ptr contents; diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index f182dcc1ad0..6e81908c24e 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -907,7 +907,7 @@ static bool has_external_files(Main *bmain, struct ReportList *reports) eBPathForeachFlag flag = static_cast( BKE_BPATH_FOREACH_PATH_SKIP_PACKED /* Packed files are fine. */ - | BKE_BPATH_FOREACH_PATH_SKIP_MULTIFILE); /* Only report multifiles once, it's enough. */ + | BKE_BPATH_FOREACH_PATH_SKIP_MULTIFILE); /* Only report multi-files once, it's enough. */ BPathForeachPathData bpath_data = { /* bmain */ bmain, diff --git a/source/blender/editors/include/ED_file_indexer.h b/source/blender/editors/include/ED_file_indexer.h index 12579283a62..0afa8819def 100644 --- a/source/blender/editors/include/ED_file_indexer.h +++ b/source/blender/editors/include/ED_file_indexer.h @@ -50,7 +50,7 @@ typedef enum eFileIndexerResult { FILE_INDEXER_ENTRIES_LOADED, /** - * Index isn't available or not upto date. Entries should be read from te blend file and + * Index isn't available or not up to date. Entries should be read from the blend file and * `update_index` must be called to update the index. */ FILE_INDEXER_NEEDS_UPDATE, @@ -103,7 +103,7 @@ typedef struct FileIndexerType { * Is called at the end of the file listing process (before the `free_user_data`) where indexes * can perform clean-ups. * - * This is an optinal callback. Called when listing files completed. + * This is an optional callback. Called when listing files completed. */ FileIndexerFinishedFunc filelist_finished; diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index b9f68d8d83c..f1c207d7326 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -25,7 +25,7 @@ #include #include #include -#include /* offsetof() */ +#include /* `offsetof()` */ #include #include "MEM_guardedalloc.h" diff --git a/source/blender/editors/interface/interface_view.cc b/source/blender/editors/interface/interface_view.cc index 4e38f245155..0f0d1b1308e 100644 --- a/source/blender/editors/interface/interface_view.cc +++ b/source/blender/editors/interface/interface_view.cc @@ -46,7 +46,7 @@ struct ViewLink : public Link { using TreeViewPtr = std::unique_ptr; std::string idname; - /* Note: Can't use std::get() on this until minimum macOS deployment target is 10.14. */ + /* NOTE: Can't use std::get() on this until minimum macOS deployment target is 10.14. */ std::variant view; }; diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 62320defbb3..30314742958 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -265,7 +265,7 @@ typedef struct CurveMaskCache { int last_curve_timestamp; /** - * \brief sampled version of the brush curvemapping. + * \brief sampled version of the brush curve-mapping. */ float *sampled_curve; @@ -414,4 +414,3 @@ void paint_delete_blur_kernel(BlurKernel *); #ifdef __cplusplus } #endif - diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc index 39ea43264f5..1b1517b7289 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -376,7 +376,7 @@ bool AssetCatalogDropController::can_drop(const wmDrag &drag, const char **r_dis { if (drag.type == WM_DRAG_ASSET_CATALOG) { const AssetCatalog *drag_catalog = get_drag_catalog(drag, get_asset_library()); - /* Note: Technically it's not an issue to allow this (the catalog will just receive a new + /* NOTE: Technically it's not an issue to allow this (the catalog will just receive a new * path and the catalog system will generate missing parents from the path). But it does * appear broken to users, so disabling entirely. */ if (catalog_item_.catalog_path().is_contained_in(drag_catalog->path)) { diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 3e48c2a5d87..6593894d9a6 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -3255,7 +3255,7 @@ static int filelist_readjob_list_lib(const char *root, /* Try read from indexer_runtime. */ /* Indexing returns all entries in a blend file. We should ignore the index when listing a group * inside a blend file, so the `entries` isn't filled with undesired entries. - * This happens when linking or appending data-blocks, where you can navigate into a group (fe + * This happens when linking or appending data-blocks, where you can navigate into a group (ie * Materials/Objects) where you only want to work with partial indexes. * * Adding support for partial reading/updating indexes would increase the complexity. diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 37b1d3825d4..8d89fbbd80f 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -1385,8 +1385,8 @@ void file_params_renamefile_activate(SpaceFile *sfile, FileSelectParams *params) params->rename_flag = FILE_PARAMS_RENAME_ACTIVE; } else if ((params->rename_flag & FILE_PARAMS_RENAME_POSTSCROLL_PENDING) != 0) { - /* file_select_deselect_all() will resort and refilter, so idx will probably have changed. - * Need to get the correct FileDirEntry again. */ + /* file_select_deselect_all() will resort and re-filter, so `idx` will probably have changed. + * Need to get the correct #FileDirEntry again. */ file_select_deselect_all(sfile, FILE_SEL_SELECTED); idx = file_params_find_renamed(params, sfile->files); file = filelist_file(sfile->files, idx); diff --git a/source/blender/editors/undo/memfile_undo.c b/source/blender/editors/undo/memfile_undo.c index ee7221bd2a8..ad3b4162f89 100644 --- a/source/blender/editors/undo/memfile_undo.c +++ b/source/blender/editors/undo/memfile_undo.c @@ -147,7 +147,7 @@ static int memfile_undosys_step_id_reused_cb(LibraryIDLinkCallbackData *cb_data) /** * ID previews may be generated in a parallel job. So whatever operation generates the preview * likely does the undo push before the preview is actually done and stored in the ID. Hence they - * get some extra treatement here: + * get some extra treatment here: * When undoing back to the moment the preview generation was triggered, this function schedules * the preview for regeneration. */ -- cgit v1.2.3