From 5739283e432afa2b181ba53256d394edca3111ac Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 28 Feb 2017 13:52:44 +0000 Subject: Fix cppcheck git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@2117 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fc572de6a1ee5bdc6f25b02ad26d88a4a453440a --- .../example/example_strong_witness_complex_off.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Witness_complex/example/example_strong_witness_complex_off.cpp b/src/Witness_complex/example/example_strong_witness_complex_off.cpp index c9a3b543..6a4925b8 100644 --- a/src/Witness_complex/example/example_strong_witness_complex_off.cpp +++ b/src/Witness_complex/example/example_strong_witness_complex_off.cpp @@ -14,11 +14,11 @@ #include #include -typedef CGAL::Epick_d K; -typedef typename K::Point_d Point_d; +using K = CGAL::Epick_d; +using Point_d = typename K::Point_d; typedef typename Gudhi::witness_complex::Euclidean_strong_witness_complex Witness_complex; -typedef std::vector< typename Gudhi::Simplex_tree<>::Vertex_handle > typeVectorVertex; -typedef std::vector< Point_d > Point_vector; +using typeVectorVertex = std::vector< typename Gudhi::Simplex_tree<>::Vertex_handle >; +using Point_vector = std::vector< Point_d >; int main(int argc, char * const argv[]) { if (argc != 5) { @@ -41,7 +41,7 @@ int main(int argc, char * const argv[]) { exit(-1); // ----- >> } point_vector = Point_vector(off_reader.get_point_cloud()); - + std::cout << "Successfully read " << point_vector.size() << " points.\n"; std::cout << "Ambient dimension is " << point_vector[0].dimension() << ".\n"; -- cgit v1.2.3