summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-28 13:52:44 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-28 13:52:44 +0000
commit5739283e432afa2b181ba53256d394edca3111ac (patch)
treeca89a5d1165816452a85a2ac3a7fc0356faed01d
parent42451e635474bfbbf866927707d2acfb7e426928 (diff)
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
-rw-r--r--src/Witness_complex/example/example_strong_witness_complex_off.cpp10
1 files 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 <string>
#include <vector>
-typedef CGAL::Epick_d<CGAL::Dynamic_dimension_tag> K;
-typedef typename K::Point_d Point_d;
+using K = CGAL::Epick_d<CGAL::Dynamic_dimension_tag>;
+using Point_d = typename K::Point_d;
typedef typename Gudhi::witness_complex::Euclidean_strong_witness_complex<K> 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";