From 1411118055368022cf466448d4da8494d05e02c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 24 Oct 2021 19:31:08 +1100 Subject: Cleanup: spelling in comments --- source/blender/blenkernel/intern/asset_catalog.cc | 2 +- source/blender/blenkernel/intern/asset_catalog_test.cc | 2 +- source/blender/blenkernel/intern/spline_bezier.cc | 2 +- source/blender/blenlib/BLI_string_ref.hh | 2 +- source/blender/blenlib/intern/expr_pylike_eval.c | 2 +- source/blender/blenlib/intern/noise.c | 3 +-- source/blender/blenlib/intern/string.c | 2 +- source/blender/bmesh/intern/bmesh_operators.c | 4 ++-- source/blender/compositor/intern/COM_Node.h | 10 ++++------ source/blender/draw/engines/eevee/eevee_motion_blur.c | 4 ++-- source/blender/draw/engines/workbench/workbench_render.c | 2 +- source/blender/editors/object/object_relations.c | 2 +- source/blender/editors/physics/particle_edit.c | 2 +- source/blender/editors/space_text/text_format.h | 4 ++-- source/blender/editors/space_text/text_format_lua.c | 2 +- source/blender/editors/space_text/text_format_osl.c | 4 ++-- source/blender/editors/space_text/text_format_pov.c | 2 +- source/blender/editors/space_text/text_format_pov_ini.c | 2 +- source/blender/editors/space_text/text_format_py.c | 2 +- source/blender/modifiers/intern/MOD_edgesplit.c | 4 ++-- 20 files changed, 28 insertions(+), 31 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/asset_catalog.cc b/source/blender/blenkernel/intern/asset_catalog.cc index 41510ff1d02..13f66445c46 100644 --- a/source/blender/blenkernel/intern/asset_catalog.cc +++ b/source/blender/blenkernel/intern/asset_catalog.cc @@ -210,7 +210,7 @@ void AssetCatalogService::delete_catalog_by_id_hard(CatalogID catalog_id) catalog_collection_->catalogs_.remove(catalog_id); catalog_collection_->deleted_catalogs_.remove(catalog_id); - /* TODO(Sybren): adjust this when supporting mulitple CDFs. */ + /* TODO(@sybren): adjust this when supporting multiple CDFs. */ catalog_collection_->catalog_definition_file_->forget(catalog_id); } diff --git a/source/blender/blenkernel/intern/asset_catalog_test.cc b/source/blender/blenkernel/intern/asset_catalog_test.cc index a2835d7b3b2..abe6d384247 100644 --- a/source/blender/blenkernel/intern/asset_catalog_test.cc +++ b/source/blender/blenkernel/intern/asset_catalog_test.cc @@ -984,7 +984,7 @@ TEST_F(AssetCatalogTest, refresh_catalogs_with_modification) TestableAssetCatalogService service(asset_library_root_); service.load_from_disk(cdf_dir); - /* === Perfom changes that should be handled gracefully by the reloading code: */ + /* === Perform changes that should be handled gracefully by the reloading code: */ /* 1. Delete a subtree of catalogs. */ service.prune_catalogs_by_id(UUID_POSES_RUZENA); diff --git a/source/blender/blenkernel/intern/spline_bezier.cc b/source/blender/blenkernel/intern/spline_bezier.cc index 36ccadf521b..e760bf3495e 100644 --- a/source/blender/blenkernel/intern/spline_bezier.cc +++ b/source/blender/blenkernel/intern/spline_bezier.cc @@ -346,7 +346,7 @@ bool BezierSpline::point_is_sharp(const int index) const } /** - * \warning: This functiona assumes that the spline has more than one point. + * \warning This functional assumes that the spline has more than one point. */ bool BezierSpline::segment_is_vector(const int index) const { diff --git a/source/blender/blenlib/BLI_string_ref.hh b/source/blender/blenlib/BLI_string_ref.hh index 4c2b26fe316..34baf94c448 100644 --- a/source/blender/blenlib/BLI_string_ref.hh +++ b/source/blender/blenlib/BLI_string_ref.hh @@ -391,7 +391,7 @@ constexpr StringRef StringRefBase::trim() const } /** - * Return a new StringRef that does not contain leading and trailing whitespace. + * Return a new StringRef that does not contain leading and trailing white-space. */ constexpr StringRef StringRefBase::trim(const char character_to_remove) const { diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c index 4d1ba190c14..1acb8299aa2 100644 --- a/source/blender/blenlib/intern/expr_pylike_eval.c +++ b/source/blender/blenlib/intern/expr_pylike_eval.c @@ -653,7 +653,7 @@ static bool parse_add_func(ExprParseState *state, eOpCode code, int args, void * /* Extract the next token from raw characters. */ static bool parse_next_token(ExprParseState *state) { - /* Skip whitespace. */ + /* Skip white-space. */ while (isspace(*state->cur)) { state->cur++; } diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 9850de69b5a..a0938f4f713 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1426,8 +1426,7 @@ float BLI_noise_mg_multi_fractal( } return value; - -} /* multifractal() */ +} /** * Heterogeneous procedural terrain function: stats by altitude method. diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 0ea784c95b0..e8be674b6c1 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -1026,7 +1026,7 @@ void BLI_str_toupper_ascii(char *str, const size_t len) } /** - * Strip whitespace from end of the string. + * Strip white-space from end of the string. */ void BLI_str_rstrip(char *str) { diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index cf7697ad35f..221994aa313 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -1796,11 +1796,11 @@ bool BMO_op_vinitf(BMesh *bm, BMOperator *op, const int flag, const char *_fmt, while (*fmt) { if (state) { - /* jump past leading whitespace */ + /* Jump past leading white-space. */ i = strspn(fmt, " "); fmt += i; - /* ignore trailing whitespace */ + /* Ignore trailing white-space. */ if (!fmt[i]) { break; } diff --git a/source/blender/compositor/intern/COM_Node.h b/source/blender/compositor/intern/COM_Node.h index bd8b37276a0..dd126770303 100644 --- a/source/blender/compositor/intern/COM_Node.h +++ b/source/blender/compositor/intern/COM_Node.h @@ -126,16 +126,14 @@ class Node { } /** - * get the reference to a certain outputsocket - * \param index: - * the index of the needed outputsocket + * Get the reference to a certain output-socket. + * \param index: The index of the needed output-socket. */ NodeOutput *get_output_socket(const unsigned int index = 0) const; /** - * get the reference to a certain inputsocket - * \param index: - * the index of the needed inputsocket + * get the reference to a certain input-socket. + * \param index: The index of the needed input-socket. */ NodeInput *get_input_socket(const unsigned int index) const; diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c index e8c2514d908..1eff2a3af24 100644 --- a/source/blender/draw/engines/eevee/eevee_motion_blur.c +++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c @@ -405,8 +405,8 @@ void EEVEE_motion_blur_cache_finish(EEVEE_Data *vedata) /* Push instances attributes to the GPU. */ DRW_render_instance_buffer_finish(); - /* Need to be called after DRW_render_instance_buffer_finish() */ - /* Also we weed to have a correct fbo bound for DRW_hair_update */ + /* Need to be called after #DRW_render_instance_buffer_finish() */ + /* Also we weed to have a correct FBO bound for #DRW_hair_update. */ GPU_framebuffer_bind(vedata->fbl->main_fb); DRW_hair_update(); diff --git a/source/blender/draw/engines/workbench/workbench_render.c b/source/blender/draw/engines/workbench/workbench_render.c index f2d178f6565..125bee87614 100644 --- a/source/blender/draw/engines/workbench/workbench_render.c +++ b/source/blender/draw/engines/workbench/workbench_render.c @@ -185,7 +185,7 @@ void workbench_render(void *ved, RenderEngine *engine, RenderLayer *render_layer DRW_render_instance_buffer_finish(); - /* Also we weed to have a correct fbo bound for DRW_hair_update */ + /* Also we weed to have a correct FBO bound for #DRW_hair_update */ GPU_framebuffer_bind(dfbl->default_fb); DRW_hair_update(); diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index fceccbb6df1..d81143d6081 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -1679,7 +1679,7 @@ void OBJECT_OT_make_links_data(wmOperatorType *ot) static bool single_data_needs_duplication(ID *id) { - /* NOTE: When dealing with linked data, we always make alocal copy of it. + /* NOTE: When dealing with linked data, we always make a local copy of it. * While in theory we could rather make it local when it only has one user, this is difficult * in practice with current code of this function. */ return (id != NULL && (id->us > 1 || ID_IS_LINKED(id))); diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 8afc5c583e0..97f3b96cd18 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -1000,7 +1000,7 @@ static void PE_update_mirror_cache(Object *ob, ParticleSystem *psys) tree = BLI_kdtree_3d_new(totpart); - /* insert particles into kd tree */ + /* Insert particles into KD-tree. */ LOOP_PARTICLES { key = pa->hair; diff --git a/source/blender/editors/space_text/text_format.h b/source/blender/editors/space_text/text_format.h index 833f40730ad..fe7b3328030 100644 --- a/source/blender/editors/space_text/text_format.h +++ b/source/blender/editors/space_text/text_format.h @@ -75,7 +75,7 @@ typedef struct TextFormatType { } TextFormatType; enum { - /** Whitespace */ + /** White-space */ FMT_TYPE_WHITESPACE = '_', /** Comment text */ FMT_TYPE_COMMENT = '#', @@ -85,7 +85,7 @@ enum { FMT_TYPE_NUMERAL = 'n', /** String letters */ FMT_TYPE_STRING = 'l', - /** Decorator / Preprocessor directive */ + /** Decorator / Pre-processor directive */ FMT_TYPE_DIRECTIVE = 'd', /** Special variables (class, def) */ FMT_TYPE_SPECIAL = 'v', diff --git a/source/blender/editors/space_text/text_format_lua.c b/source/blender/editors/space_text/text_format_lua.c index 0cd2d9baa0b..cdc43246a2f 100644 --- a/source/blender/editors/space_text/text_format_lua.c +++ b/source/blender/editors/space_text/text_format_lua.c @@ -277,7 +277,7 @@ static void txtfmt_lua_format_line(SpaceText *st, TextLine *line, const bool do_ cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE; *fmt = FMT_TYPE_STRING; } - /* Whitespace (all ws. has been converted to spaces) */ + /* White-space (all ws. has been converted to spaces). */ else if (*str == ' ') { *fmt = FMT_TYPE_WHITESPACE; } diff --git a/source/blender/editors/space_text/text_format_osl.c b/source/blender/editors/space_text/text_format_osl.c index 97d9ec546ca..6fc65a19d98 100644 --- a/source/blender/editors/space_text/text_format_osl.c +++ b/source/blender/editors/space_text/text_format_osl.c @@ -170,7 +170,7 @@ static int txtfmt_osl_find_preprocessor(const char *string) { if (string[0] == '#') { int i = 1; - /* Whitespace is ok '# foo' */ + /* White-space is ok '# foo'. */ while (text_check_whitespace(string[i])) { i++; } @@ -298,7 +298,7 @@ static void txtfmt_osl_format_line(SpaceText *st, TextLine *line, const bool do_ cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE; *fmt = FMT_TYPE_STRING; } - /* Whitespace (all ws. has been converted to spaces) */ + /* White-space (all ws. has been converted to spaces). */ else if (*str == ' ') { *fmt = FMT_TYPE_WHITESPACE; } diff --git a/source/blender/editors/space_text/text_format_pov.c b/source/blender/editors/space_text/text_format_pov.c index 7af59c00499..0f103351eee 100644 --- a/source/blender/editors/space_text/text_format_pov.c +++ b/source/blender/editors/space_text/text_format_pov.c @@ -870,7 +870,7 @@ static void txtfmt_pov_format_line(SpaceText *st, TextLine *line, const bool do_ cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE; *fmt = FMT_TYPE_STRING; } - /* Whitespace (all ws. has been converted to spaces) */ + /* White-space (all ws. has been converted to spaces). */ else if (*str == ' ') { *fmt = FMT_TYPE_WHITESPACE; } diff --git a/source/blender/editors/space_text/text_format_pov_ini.c b/source/blender/editors/space_text/text_format_pov_ini.c index 4e6945a279c..2ce8bc37868 100644 --- a/source/blender/editors/space_text/text_format_pov_ini.c +++ b/source/blender/editors/space_text/text_format_pov_ini.c @@ -448,7 +448,7 @@ static void txtfmt_pov_ini_format_line(SpaceText *st, TextLine *line, const bool cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE; *fmt = FMT_TYPE_STRING; } - /* Whitespace (all ws. has been converted to spaces) */ + /* White-space (all ws. has been converted to spaces). */ else if (*str == ' ') { *fmt = FMT_TYPE_WHITESPACE; } diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c index e2a01a8d85d..a8a3bfa3a68 100644 --- a/source/blender/editors/space_text/text_format_py.c +++ b/source/blender/editors/space_text/text_format_py.c @@ -423,7 +423,7 @@ static void txtfmt_py_format_line(SpaceText *st, TextLine *line, const bool do_n } *fmt = FMT_TYPE_STRING; } - /* Whitespace (all ws. has been converted to spaces) */ + /* White-space (all ws. has been converted to spaces). */ else if (*str == ' ') { *fmt = FMT_TYPE_WHITESPACE; } diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c index b21a536ad8a..1039bcb2b3b 100644 --- a/source/blender/modifiers/intern/MOD_edgesplit.c +++ b/source/blender/modifiers/intern/MOD_edgesplit.c @@ -20,10 +20,10 @@ /** \file * \ingroup modifiers * - * EdgeSplit modifier + * Edge Split modifier * * Splits edges in the mesh according to sharpness flag - * or edge angle (can be used to achieve autosmoothing) + * or edge angle (can be used to achieve auto-smoothing) */ #include "BLI_utildefines.h" -- cgit v1.2.3