diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-28 08:44:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-28 08:46:08 +0300 |
commit | 1d8648b13a0667d338a4e60df004be7e41525968 (patch) | |
tree | 763c9e0b843850f6894101c8ad02a6bff34b5497 /intern | |
parent | 23c4854f45d7cafa1cfadf13556b9277d4666bd1 (diff) |
Cleanup: repeated terms in code comments & error messages
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_node.h | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_math_fast.h | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_task.h | 2 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 4 | ||||
-rw-r--r-- | intern/itasc/kdl/frames.inl | 2 | ||||
-rw-r--r-- | intern/mantaflow/intern/manta_fluid_API.cpp | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/intern/cycles/bvh/bvh_node.h b/intern/cycles/bvh/bvh_node.h index 797dd5b694e..b3b5c43a394 100644 --- a/intern/cycles/bvh/bvh_node.h +++ b/intern/cycles/bvh/bvh_node.h @@ -179,7 +179,7 @@ class InnerNode : public BVHNode { } /* NOTE: This function is only used during binary BVH builder, and it - * supposed to be configured to have 2 children which will be filled in in a + * supposed to be configured to have 2 children which will be filled-in in a * bit. But this is important to have children reset to NULL. */ explicit InnerNode(const BoundBox &bounds) : BVHNode(bounds), num_children_(0) { diff --git a/intern/cycles/util/util_math_fast.h b/intern/cycles/util/util_math_fast.h index 5ae56290f05..1113ede0f2d 100644 --- a/intern/cycles/util/util_math_fast.h +++ b/intern/cycles/util/util_math_fast.h @@ -243,7 +243,7 @@ ccl_device float fast_sinpif(float x) const float P = 3.584135056f; /* P = 16-4*Q */ return y * (Q + P * fabsf(y)); - /* The original article used used inferior constants for Q and P and + /* The original article used inferior constants for Q and P and * so had max error 1.091e-3. * * The optimal value for Q was determined by exhaustive search, minimizing diff --git a/intern/cycles/util/util_task.h b/intern/cycles/util/util_task.h index 55344ff86ba..ec45dfa8040 100644 --- a/intern/cycles/util/util_task.h +++ b/intern/cycles/util/util_task.h @@ -68,7 +68,7 @@ class TaskPool { /* ** Statistics ** */ - /* Time time stamp of first task pushed. */ + /* Time stamp of first task pushed. */ double start_time; /* Number of all tasks pushed to the pool. Cleared after wait_work() and cancel(). */ diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index cdfb950a72c..fd01d21da5a 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1012,8 +1012,8 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window) void GHOST_SystemWin32::processPointerEvent( UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventHandled) { - /* Pointer events might fire when changing windows for a device which is set to use Wintab, even - * when when Wintab is left enabled but set to the bottom of Wintab overlap order. */ + /* Pointer events might fire when changing windows for a device which is set to use Wintab, + * even when Wintab is left enabled but set to the bottom of Wintab overlap order. */ if (!window->usingTabletAPI(GHOST_kTabletWinPointer)) { return; } diff --git a/intern/itasc/kdl/frames.inl b/intern/itasc/kdl/frames.inl index a09b532762b..f7a805d10c4 100644 --- a/intern/itasc/kdl/frames.inl +++ b/intern/itasc/kdl/frames.inl @@ -867,7 +867,7 @@ IMETHOD void Vector2::Set3DYZ(const Vector& v) data[1]=v(2); } IMETHOD void Vector2::Set3DZX(const Vector& v) -// projects v in its XY plane, and and sets *this to these values +// projects v in its XY plane, and sets *this to these values { data[0]=v(2); data[1]=v(0); diff --git a/intern/mantaflow/intern/manta_fluid_API.cpp b/intern/mantaflow/intern/manta_fluid_API.cpp index c04180c8c46..5b27bd91d91 100644 --- a/intern/mantaflow/intern/manta_fluid_API.cpp +++ b/intern/mantaflow/intern/manta_fluid_API.cpp @@ -323,7 +323,7 @@ static void get_rgba( float *r, float *g, float *b, float *a, int total_cells, float *data, int sequential) { int i; - /* Use offsets to map RGB grids to to correct location in data grid. */ + /* Use offsets to map RGB grids to correct location in data grid. */ int m = 4, i_g = 1, i_b = 2, i_a = 3; if (sequential) { m = 1; |