From 07d9906f72303db079dea770e252999aaf1f5aee Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 1 May 2018 18:21:45 +0200 Subject: [PATCH] Remove unnecessary const_cast. --- include/deal.II/matrix_free/dof_info.templates.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/deal.II/matrix_free/dof_info.templates.h b/include/deal.II/matrix_free/dof_info.templates.h index f1a349e2bc..a291bd79f6 100644 --- a/include/deal.II/matrix_free/dof_info.templates.h +++ b/include/deal.II/matrix_free/dof_info.templates.h @@ -392,9 +392,8 @@ no_constraint: const unsigned int n_boundary_cells = boundary_cells.size(); for (unsigned int i=0; i (dof_indices.data() + - row_starts[boundary_cells[i]*n_components].first); + unsigned int *data_ptr = dof_indices.data() + + row_starts[boundary_cells[i]*n_components].first; const unsigned int *row_end = dof_indices.data() + row_starts[(boundary_cells[i]+1)*n_components].first; for ( ; data_ptr != row_end; ++data_ptr) @@ -411,9 +410,8 @@ no_constraint: if (row_starts[boundary_cells[i]*n_components].second != row_starts[(boundary_cells[i]+1)*n_components].second) { - unsigned int *data_ptr = - const_cast (plain_dof_indices.data() + - row_starts_plain_indices[boundary_cells[i]]); + unsigned int *data_ptr = plain_dof_indices.data() + + row_starts_plain_indices[boundary_cells[i]]; const unsigned int *row_end = data_ptr + dofs_per_cell[cell_active_fe_index.size() == 0 ? 0 : cell_active_fe_index[i]]; -- 2.39.5