]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove meaningless type qualifier in pointer cast 5230/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 11 Oct 2017 18:45:11 +0000 (20:45 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 11 Oct 2017 19:36:25 +0000 (21:36 +0200)
source/distributed/tria.cc

index b8c7a375be812732ab920e7838038cc3a0db2b85..3e45432cf0872c3f0afb9b69cddc1fcb816d5941 100644 (file)
@@ -1462,7 +1462,7 @@ namespace parallel
                 // Additionally, we need to store the pointer to this
                 // vertex index with respect to the std::vector
                 const unsigned int *const vertex_index
-                  = reinterpret_cast<const unsigned int *const>(ptr);
+                  = reinterpret_cast<const unsigned int *>(ptr);
                 first_indices[c] = vertex_indices.size();
                 vertex_indices.push_back(*vertex_index);
                 n_vertices_on_cell[c] = *vertex_index;
@@ -1482,7 +1482,7 @@ namespace parallel
               {
                 // We need to store a pointer to the first vertex.
                 const dealii::Point<spacedim> *const vertex
-                  = reinterpret_cast<const dealii::Point<spacedim> * const>(ptr);
+                  = reinterpret_cast<const dealii::Point<spacedim> *>(ptr);
                 first_indices[c] = vertices.size();
                 vertices.push_back(*vertex);
                 ptr += sizeof(dealii::Point<spacedim>);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.