From: wolf Date: Tue, 16 Mar 1999 19:17:01 +0000 (+0000) Subject: Use the more obvious C++-style cast to eliminate one of the many warnings with -Wold... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=048e254b274c5db37a65f306daa0f727a958894e;p=dealii-svn.git Use the more obvious C++-style cast to eliminate one of the many warnings with -Wold-style-cast git-svn-id: https://svn.dealii.org/trunk@1015 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/smartpointer.h b/deal.II/base/include/base/smartpointer.h index 62cb6171f6..d89f7cf9c6 100644 --- a/deal.II/base/include/base/smartpointer.h +++ b/deal.II/base/include/base/smartpointer.h @@ -148,7 +148,7 @@ template SmartPointer & SmartPointer::operator = (const SmartPointer& tt) { if (t) t->unsubscribe(); - t = (T*) tt; + t = static_cast(tt); if (tt) tt->subscribe(); return *this;