Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
commit7f2d356a672d838c90cf47e9ff4006b15c104148 (patch)
treea87f8056750bc810f1430d03c14e8c93e170f3fd /source/blender/simulation
parent10a8286a267d1796983f321dd01668d6072570ed (diff)
Cleanup: Clang-Tidy, modernize-use-using
Replace `typedef` with `using` in C++ code. In the case of `typedef struct SomeName { ... } SomeName;` I removed the `typedef` altogether, as this is unnecessary in C++. Such cases have been rewritten to `struct SomeName { ... };` No functional changes.
Diffstat (limited to 'source/blender/simulation')
-rw-r--r--source/blender/simulation/intern/hair_volume.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/simulation/intern/hair_volume.cpp b/source/blender/simulation/intern/hair_volume.cpp
index 123b91edaac..1b65dd8f22c 100644
--- a/source/blender/simulation/intern/hair_volume.cpp
+++ b/source/blender/simulation/intern/hair_volume.cpp
@@ -76,12 +76,12 @@ typedef struct HairGridVert {
float velocity_smooth[3];
} HairGridVert;
-typedef struct HairGrid {
+struct HairGrid {
HairGridVert *verts;
int res[3];
float gmin[3], gmax[3];
float cellsize, inv_cellsize;
-} HairGrid;
+};
#define HAIR_GRID_INDEX_AXIS(vec, res, gmin, scale, axis) \
(min_ii(max_ii((int)((vec[axis] - gmin[axis]) * scale), 0), res[axis] - 2))