]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the more obvious C++-style cast to eliminate one of the many warnings with -Wold...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Mar 1999 19:17:01 +0000 (19:17 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Mar 1999 19:17:01 +0000 (19:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@1015 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/smartpointer.h

index 62cb6171f68d4ea63c7eb5e0663e8935df8feb8a..d89f7cf9c6e165d1637aa3f3f926a8f6b2468d48 100644 (file)
@@ -148,7 +148,7 @@ template <typename T>
 SmartPointer<T> & SmartPointer<T>::operator = (const SmartPointer<T>& tt) {
   if (t)
     t->unsubscribe();
-  t = (T*) tt;
+  t = static_cast<T*>(tt);
   if (tt)
     tt->subscribe();
   return *this;

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.