diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-09 18:29:11 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-09 18:29:11 +0300 |
commit | c93f826661334926fc15504243f61c85242bec42 (patch) | |
tree | 80b49e2b1aefcf177c1bb745f2501a660260b9aa /source/blender/freestyle | |
parent | 4a5f36638b0244b586607e76451669ffbc3c1174 (diff) |
Cleanup: various clang tidy fixes
Diffstat (limited to 'source/blender/freestyle')
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index e24700a57d8..ddd11729e67 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -1067,7 +1067,7 @@ void Controller::displayDensityCurves(int x, int y) } unsigned int i, j; - typedef vector<Vec3r> densityCurve; + using densityCurve = vector<Vec3r>; vector<densityCurve> curves(svm->getNumberOfOrientations() + 1); vector<densityCurve> curvesDirection(svm->getNumberOfPyramidLevels()); diff --git a/source/blender/freestyle/intern/geometry/FitCurve.cpp b/source/blender/freestyle/intern/geometry/FitCurve.cpp index 66914929960..5768f88e95f 100644 --- a/source/blender/freestyle/intern/geometry/FitCurve.cpp +++ b/source/blender/freestyle/intern/geometry/FitCurve.cpp @@ -30,7 +30,7 @@ using namespace std; namespace Freestyle { -typedef Vector2 *BezierCurve; +using BezierCurve = Vector2 *; /* Forward declarations */ static double *Reparameterize(Vector2 *d, int first, int last, double *u, BezierCurve bezCurve); diff --git a/source/blender/freestyle/intern/geometry/GeomCleaner.cpp b/source/blender/freestyle/intern/geometry/GeomCleaner.cpp index 6a499c07061..7ec18fb2801 100644 --- a/source/blender/freestyle/intern/geometry/GeomCleaner.cpp +++ b/source/blender/freestyle/intern/geometry/GeomCleaner.cpp @@ -202,7 +202,7 @@ void GeomCleaner::CleanIndexedVertexArray(const float *iVertices, unsigned *oVSize, unsigned **oIndices) { - typedef map<Vec3f, unsigned> cleanHashTable; + using cleanHashTable = map<Vec3f, unsigned>; vector<Vec3f> vertices; unsigned i; for (i = 0; i < iVSize; i += 3) { |