[Bf-blender-cvs] [ceff1c2f654] master: Cleanup: spelling, unbalanced doxy sections

Campbell Barton noreply at git.blender.org
Wed May 25 05:44:20 CEST 2022


Commit: ceff1c2f65459b9eb6b12c3baff5f7af360ae738
Author: Campbell Barton
Date:   Wed May 25 12:46:55 2022 +1000
Branches: master
https://developer.blender.org/rBceff1c2f65459b9eb6b12c3baff5f7af360ae738

Cleanup: spelling, unbalanced doxy sections

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

M	intern/ghost/intern/GHOST_ContextWGL.cpp
M	intern/ghost/intern/GHOST_SystemX11.cpp
M	source/blender/blenkernel/intern/geometry_component_curves.cc
M	source/blender/depsgraph/intern/builder/deg_builder_stack.h
M	source/blender/editors/mesh/meshtools.cc
M	source/blender/editors/space_node/node_edit.cc
M	source/blender/nodes/shader/node_shader_tree.cc
M	source/blender/python/mathutils/mathutils_Color.c

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

diff --git a/intern/ghost/intern/GHOST_ContextWGL.cpp b/intern/ghost/intern/GHOST_ContextWGL.cpp
index fa9e2a8f360..7417358e9ae 100644
--- a/intern/ghost/intern/GHOST_ContextWGL.cpp
+++ b/intern/ghost/intern/GHOST_ContextWGL.cpp
@@ -136,10 +136,10 @@ static int weight_pixel_format(PIXELFORMATDESCRIPTOR &pfd, PIXELFORMATDESCRIPTOR
   /* cull unusable pixel formats */
   /* if no formats can be found, can we determine why it was rejected? */
   if (!(pfd.dwFlags & PFD_SUPPORT_OPENGL) || !(pfd.dwFlags & PFD_DRAW_TO_WINDOW) ||
-      !(pfd.dwFlags & PFD_DOUBLEBUFFER) || /* Blender _needs_ this */
+      !(pfd.dwFlags & PFD_DOUBLEBUFFER) || /* Blender _needs_ this. */
       !(pfd.iPixelType == PFD_TYPE_RGBA) ||
-      (pfd.cColorBits > 32) ||            /* 64 bit formats disable aero */
-      (pfd.dwFlags & PFD_GENERIC_FORMAT)) /* no software renderers */
+      (pfd.cColorBits > 32) ||            /* 64 bit formats disable AERO. */
+      (pfd.dwFlags & PFD_GENERIC_FORMAT)) /* No software renderers. */
   {
     return 0;
   }
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index bbce6fdfdb5..703fd1c44d9 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -1117,7 +1117,7 @@ void GHOST_SystemX11::processEvent(XEvent *xe)
 #else
       /* In keyboards like Latin ones,
        * numbers needs a 'Shift' to be accessed but key_sym
-       * is unmodified (or anyone swapping the keys with xmodmap).
+       * is unmodified (or anyone swapping the keys with `xmodmap`).
        *
        * Here we look at the 'Shifted' version of the key.
        * If it is a number, then we take it instead of the normal key.
diff --git a/source/blender/blenkernel/intern/geometry_component_curves.cc b/source/blender/blenkernel/intern/geometry_component_curves.cc
index d23918215ba..9b023d12a7d 100644
--- a/source/blender/blenkernel/intern/geometry_component_curves.cc
+++ b/source/blender/blenkernel/intern/geometry_component_curves.cc
@@ -135,12 +135,12 @@ const Curve *CurveComponent::get_curve_for_render() const
 
 /** \} */
 
+namespace blender::bke {
+
 /* -------------------------------------------------------------------- */
 /** \name Curve Normals Access
  * \{ */
 
-namespace blender::bke {
-
 static Array<float3> curve_normal_point_domain(const bke::CurvesGeometry &curves)
 {
   const VArray<int8_t> types = curves.curve_types();
@@ -300,10 +300,10 @@ bool CurveLengthFieldInput::is_equal_to(const fn::FieldNode &other) const
   return dynamic_cast<const CurveLengthFieldInput *>(&other) != nullptr;
 }
 
-}  // namespace blender::bke
-
 /** \} */
 
+}  // namespace blender::bke
+
 /* -------------------------------------------------------------------- */
 /** \name Attribute Access Helper Functions
  * \{ */
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_stack.h b/source/blender/depsgraph/intern/builder/deg_builder_stack.h
index 7c157491d43..3f9cc83928a 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_stack.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder_stack.h
@@ -71,7 +71,7 @@ class BuilderStack {
    * `BuilderStack::trace` (which pushes entry to the stack), and upon destruction of this object
    * the corresponding entry is popped from the stack.
    *
-   * The goal of this `ScopedEntry` is to free developers from worryign about removing entries from
+   * The goal of this `ScopedEntry` is to free developers from worrying about removing entries from
    * the stack whenever leaving a builder step scope. */
   class ScopedEntry {
    public:
diff --git a/source/blender/editors/mesh/meshtools.cc b/source/blender/editors/mesh/meshtools.cc
index fafccf68f03..9e28e1bafdd 100644
--- a/source/blender/editors/mesh/meshtools.cc
+++ b/source/blender/editors/mesh/meshtools.cc
@@ -418,7 +418,7 @@ int ED_mesh_join_objects_exec(bContext *C, wmOperator *op)
   }
   totcol = ob->totcol;
 
-  /* obact materials in new main array, is nicer start! */
+  /* Active object materials in new main array, is nicer start! */
   for (a = 0; a < ob->totcol; a++) {
     matar[a] = BKE_object_material_get(ob, a + 1);
     id_us_plus((ID *)matar[a]);
diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc
index fb2f1bf3751..ab80a44d636 100644
--- a/source/blender/editors/space_node/node_edit.cc
+++ b/source/blender/editors/space_node/node_edit.cc
@@ -293,10 +293,10 @@ static void compo_startjob(void *cjv,
   ntree->progress = nullptr;
 }
 
-}  // namespace blender::ed::space_node
-
 /** \} */
 
+}  // namespace blender::ed::space_node
+
 /* -------------------------------------------------------------------- */
 /** \name Composite Job C API
  * \{ */
diff --git a/source/blender/nodes/shader/node_shader_tree.cc b/source/blender/nodes/shader/node_shader_tree.cc
index ec97637ccd2..f107ec73c60 100644
--- a/source/blender/nodes/shader/node_shader_tree.cc
+++ b/source/blender/nodes/shader/node_shader_tree.cc
@@ -587,7 +587,7 @@ static bNode *ntree_shader_copy_branch(bNodeTree *ntree,
       }
     }
   }
-  /* Recreate links between copied nodes AND incomming links to the copied nodes. */
+  /* Recreate links between copied nodes AND incoming links to the copied nodes. */
   LISTBASE_FOREACH (bNodeLink *, link, &ntree->links) {
     if (link->tonode->tmp_flag >= 0) {
       bool from_node_copied = link->fromnode->tmp_flag >= 0;
diff --git a/source/blender/python/mathutils/mathutils_Color.c b/source/blender/python/mathutils/mathutils_Color.c
index 24744d0cb6e..88e8d880360 100644
--- a/source/blender/python/mathutils/mathutils_Color.c
+++ b/source/blender/python/mathutils/mathutils_Color.c
@@ -1050,7 +1050,7 @@ static struct PyMethodDef Color_methods[] = {
     /* base-math methods */
     {"freeze", (PyCFunction)BaseMathObject_freeze, METH_NOARGS, BaseMathObject_freeze_doc},
 
-    /* Colorspace methods. */
+    /* Color-space methods. */
     {"from_scene_linear_to_srgb",
      (PyCFunction)Color_from_scene_linear_to_srgb,
      METH_NOARGS,



More information about the Bf-blender-cvs mailing list