Skip to content

Commit

Permalink
Use 'auto' in one place.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Aug 15, 2021
1 parent f97587c commit 0250f71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/deal.II/sundials/n_vector.templates.h
Expand Up @@ -363,8 +363,7 @@ SUNDIALS::internal::unwrap_nvector(N_Vector v)
{
Assert(v != nullptr, ExcInternalError());
Assert(v->content != nullptr, ExcInternalError());
NVectorContent<VectorType> *pContent =
reinterpret_cast<NVectorContent<VectorType> *>(v->content);
auto *pContent = reinterpret_cast<NVectorContent<VectorType> *>(v->content);
return pContent->get();
}

Expand All @@ -376,7 +375,7 @@ SUNDIALS::internal::unwrap_nvector_const(N_Vector v)
{
Assert(v != nullptr, ExcInternalError());
Assert(v->content != nullptr, ExcInternalError());
const NVectorContent<VectorType> *pContent =
const auto *pContent =
reinterpret_cast<const NVectorContent<VectorType> *>(v->content);
return pContent->get();
}
Expand Down

0 comments on commit 0250f71

Please sign in to comment.