[Bf-blender-cvs] [715f57371ba] master: Cleanup: spelling in comments

Campbell Barton noreply at git.blender.org
Fri Dec 10 11:47:27 CET 2021


Commit: 715f57371baa627ca677a8faf88e56ebb1180027
Author: Campbell Barton
Date:   Fri Dec 10 21:28:56 2021 +1100
Branches: master
https://developer.blender.org/rB715f57371baa627ca677a8faf88e56ebb1180027

Cleanup: spelling in comments

===================================================================

M	source/blender/blenlib/BLI_ghash.h
M	source/blender/bmesh/intern/bmesh_operator_api.h
M	source/blender/bmesh/intern/bmesh_polygon.h
M	source/blender/bmesh/intern/bmesh_query.h
M	source/blender/editors/include/ED_screen.h
M	source/blender/editors/space_graph/graph_slider_ops.c
M	source/blender/imbuf/intern/openexr/openexr_api.h
M	source/blender/io/collada/MeshImporter.h

===================================================================

diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h
index 2c03ce22a6b..b688712469f 100644
--- a/source/blender/blenlib/BLI_ghash.h
+++ b/source/blender/blenlib/BLI_ghash.h
@@ -568,8 +568,8 @@ unsigned int BLI_ghashutil_ptrhash(const void *key);
 bool BLI_ghashutil_ptrcmp(const void *a, const void *b);
 
 /**
- * This function implements the widely used "djb" hash apparently posted
- * by Daniel Bernstein to comp.lang.c some time ago.  The 32 bit
+ * This function implements the widely used `djb` hash apparently posted
+ * by Daniel Bernstein to `comp.lang.c` some time ago.  The 32 bit
  * unsigned hash value starts at 5381 and for each byte 'c' in the
  * string, is updated: `hash = hash * 33 + c`.
  * This function uses the signed value of each byte.
diff --git a/source/blender/bmesh/intern/bmesh_operator_api.h b/source/blender/bmesh/intern/bmesh_operator_api.h
index 216726f0a83..c60e8af68e5 100644
--- a/source/blender/bmesh/intern/bmesh_operator_api.h
+++ b/source/blender/bmesh/intern/bmesh_operator_api.h
@@ -390,13 +390,13 @@ int BMO_mesh_disabled_flag_count(BMesh *bm, const char htype, const short oflag)
 /**
  * \brief BMESH OPSTACK PUSH
  *
- * Pushes the opstack down one level and allocates a new flag layer if appropriate.
+ * Pushes the operator-stack down one level and allocates a new flag layer if appropriate.
  */
 void BMO_push(BMesh *bm, BMOperator *op);
 /**
  * \brief BMESH OPSTACK POP
  *
- * Pops the opstack one level and frees a flag layer if appropriate
+ * Pops the operator-stack one level and frees a flag layer if appropriate
  *
  * BMESH_TODO: investigate NOT freeing flag layers.
  */
diff --git a/source/blender/bmesh/intern/bmesh_polygon.h b/source/blender/bmesh/intern/bmesh_polygon.h
index 11f578fc6ff..e4545e610a0 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.h
+++ b/source/blender/bmesh/intern/bmesh_polygon.h
@@ -200,7 +200,7 @@ bool BM_face_point_inside_test(const BMFace *f, const float co[3]) ATTR_WARN_UNU
  * \brief BMESH TRIANGULATE FACE
  *
  * Breaks all quads and ngons down to triangles.
- * It uses polyfill for the ngons splitting, and
+ * It uses poly-fill for the ngons splitting, and
  * the beautify operator when use_beauty is true.
  *
  * \param r_faces_new: if non-null, must be an array of BMFace pointers,
diff --git a/source/blender/bmesh/intern/bmesh_query.h b/source/blender/bmesh/intern/bmesh_query.h
index a88215c0e07..9c4dc169589 100644
--- a/source/blender/bmesh/intern/bmesh_query.h
+++ b/source/blender/bmesh/intern/bmesh_query.h
@@ -725,7 +725,7 @@ int BM_mesh_calc_face_groups(BMesh *bm,
  * Calculate isolated groups of edges with optional filtering.
  *
  * \param bm: the BMesh.
- * \param r_groups_array: Array of ints to fill in, length of bm->totedge
+ * \param r_groups_array: Array of ints to fill in, length of `bm->totedge`
  *        (or when hflag_test is set, the number of flagged edges).
  * \param r_group_index: index, length pairs into \a r_groups_array, size of return value
  *        int pairs: (array_start, array_length).
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h
index 5db49357540..76bbc899aba 100644
--- a/source/blender/editors/include/ED_screen.h
+++ b/source/blender/editors/include/ED_screen.h
@@ -440,7 +440,7 @@ bool ED_workspace_delete(struct WorkSpace *workspace,
  */
 void ED_workspace_scene_data_sync(struct WorkSpaceInstanceHook *hook, Scene *scene) ATTR_NONNULL();
 /**
- * Make sure there is a non-fullscreen layout to switch to that is not used yet by an other window.
+ * Make sure there is a non-full-screen layout to switch to that isn't used yet by an other window.
  * Needed for workspace or screen switching to ensure valid screens.
  *
  * \param layout_fallback_base: As last resort, this layout is duplicated and returned.
diff --git a/source/blender/editors/space_graph/graph_slider_ops.c b/source/blender/editors/space_graph/graph_slider_ops.c
index 9bd5c6ede84..0bb5e8b8d9c 100644
--- a/source/blender/editors/space_graph/graph_slider_ops.c
+++ b/source/blender/editors/space_graph/graph_slider_ops.c
@@ -278,7 +278,7 @@ static int graph_slider_modal(bContext *C, wmOperator *op, const wmEvent *event)
         break;
       }
 
-      /* Unhandled event - maybe it was some view manip? */
+      /* Unhandled event - maybe it was some view manipulation? */
       /* Allow to pass through. */
       return OPERATOR_RUNNING_MODAL | OPERATOR_PASS_THROUGH;
     }
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.h b/source/blender/imbuf/intern/openexr/openexr_api.h
index 2636bb0d820..14336620926 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.h
+++ b/source/blender/imbuf/intern/openexr/openexr_api.h
@@ -34,7 +34,7 @@ void imb_exitopenexr(void);
 
 /**
  * Test presence of OpenEXR file.
- * \param mem: pointer to loaded OpenEXR bitstream
+ * \param mem: pointer to loaded OpenEXR bit-stream.
  */
 bool imb_is_a_openexr(const unsigned char *mem, const size_t size);
 
diff --git a/source/blender/io/collada/MeshImporter.h b/source/blender/io/collada/MeshImporter.h
index d8765c6f033..95ac32a1b4c 100644
--- a/source/blender/io/collada/MeshImporter.h
+++ b/source/blender/io/collada/MeshImporter.h
@@ -144,7 +144,7 @@ class MeshImporter : public MeshImporterBase {
    * This function is copied from source/blender/editors/mesh/mesh_data.c
    *
    * TODO: (As discussed with sergey-) :
-   * Maybe move this function to blenderkernel/intern/mesh.c
+   * Maybe move this function to `blenderkernel/intern/mesh.c`.
    * and add definition to BKE_mesh.c.
    */
   static void mesh_add_edges(Mesh *mesh, int len);



More information about the Bf-blender-cvs mailing list