MeshPart: modernize C++: replace 'typedef' with 'using'

This commit is contained in:
wmayer
2022-08-29 18:36:52 +02:00
parent fd4e2c967b
commit 7eb30ca5c7
6 changed files with 22 additions and 22 deletions

View File

@@ -932,9 +932,9 @@ void MeshProjection::projectParallelToMesh (const TopoDS_Shape &aShape, const Ba
std::vector<Base::Vector3f> points;
discretize(aEdge, points, 5);
typedef std::pair<Base::Vector3f, MeshCore::FacetIndex> HitPoint;
using HitPoint = std::pair<Base::Vector3f, MeshCore::FacetIndex>;
std::vector<HitPoint> hitPoints;
typedef std::pair<HitPoint, HitPoint> HitPoints;
using HitPoints = std::pair<HitPoint, HitPoint>;
std::vector<HitPoints> hitPointPairs;
for (auto it : points) {
Base::Vector3f result;
@@ -977,9 +977,9 @@ void MeshProjection::projectParallelToMesh (const std::vector<PolyLine> &aEdges,
for (const auto& it : aEdges) {
std::vector<Base::Vector3f> points = it.points;
typedef std::pair<Base::Vector3f, MeshCore::FacetIndex> HitPoint;
using HitPoint = std::pair<Base::Vector3f, MeshCore::FacetIndex>;
std::vector<HitPoint> hitPoints;
typedef std::pair<HitPoint, HitPoint> HitPoints;
using HitPoints = std::pair<HitPoint, HitPoint>;
std::vector<HitPoints> hitPointPairs;
for (auto it : points) {
Base::Vector3f result;