From 0250f71184f6f143cf4fd61878052f72589ee237 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 15 Aug 2021 17:37:08 -0600 Subject: [PATCH] Use 'auto' in one place. --- include/deal.II/sundials/n_vector.templates.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/deal.II/sundials/n_vector.templates.h b/include/deal.II/sundials/n_vector.templates.h index 42161e5b4b..e6cb1a15ee 100644 --- a/include/deal.II/sundials/n_vector.templates.h +++ b/include/deal.II/sundials/n_vector.templates.h @@ -363,8 +363,7 @@ SUNDIALS::internal::unwrap_nvector(N_Vector v) { Assert(v != nullptr, ExcInternalError()); Assert(v->content != nullptr, ExcInternalError()); - NVectorContent *pContent = - reinterpret_cast *>(v->content); + auto *pContent = reinterpret_cast *>(v->content); return pContent->get(); } @@ -376,7 +375,7 @@ SUNDIALS::internal::unwrap_nvector_const(N_Vector v) { Assert(v != nullptr, ExcInternalError()); Assert(v->content != nullptr, ExcInternalError()); - const NVectorContent *pContent = + const auto *pContent = reinterpret_cast *>(v->content); return pContent->get(); } -- 2.39.5