]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use 'auto' in one place. 12587/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 15 Aug 2021 23:37:08 +0000 (17:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 15 Aug 2021 23:38:32 +0000 (17:38 -0600)
include/deal.II/sundials/n_vector.templates.h

index 42161e5b4bae29e6a35d583f7c5a2158bac0ca6a..e6cb1a15eebfcfed8b5202c39d756907e2b2dbf9 100644 (file)
@@ -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();
 }
 
@@ -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();
 }

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.