diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-24 07:24:54 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-24 07:24:54 +0300 |
commit | aeb2c2afaf00d1c1ef6cce73b106d5400e52566e (patch) | |
tree | b270abfc0f710366b98ea01e01a2f372c39caa76 /source/blender/blenkernel/intern/curve.cc | |
parent | e253f9f66d6f63592ffd97afe207ef7c72547d03 (diff) |
Cleanup: Clang tidy
- Deprecated headers
- Else after return
- Inconsistent parameter names (I used the most recently modified)
- Raw string literals
Diffstat (limited to 'source/blender/blenkernel/intern/curve.cc')
-rw-r--r-- | source/blender/blenkernel/intern/curve.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve.cc b/source/blender/blenkernel/intern/curve.cc index 354ddd7d167..02710982564 100644 --- a/source/blender/blenkernel/intern/curve.cc +++ b/source/blender/blenkernel/intern/curve.cc @@ -4718,11 +4718,11 @@ static NURBSValidationStatus nurb_check_valid(const int pnts, if (pnts <= 1) { return NURBSValidationStatus::AtLeastTwoPointsRequired; } - else if (type == CU_NURBS) { + if (type == CU_NURBS) { if (pnts < order) { return NURBSValidationStatus::MorePointsThanOrderRequired; } - else if (flag & CU_NURB_BEZIER) { + if (flag & CU_NURB_BEZIER) { int points_needed = 0; if (flag & CU_NURB_CYCLIC) { const int remainder = pnts % (order - 1); |