From: Wolfgang Bangerth Date: Tue, 14 Jan 2014 16:08:14 +0000 (+0000) Subject: Avoid invalid cast from one to another DoFHandler type. X-Git-Tag: v8.2.0-rc1~1038 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f889d7a788ad392a507bc8ee4e0eb05153e436d;p=dealii.git Avoid invalid cast from one to another DoFHandler type. git-svn-id: https://svn.dealii.org/trunk@32204 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/dofs/dof_accessor.templates.h b/deal.II/include/deal.II/dofs/dof_accessor.templates.h index e3dc97f94b..327146e3f5 100644 --- a/deal.II/include/deal.II/dofs/dof_accessor.templates.h +++ b/deal.II/include/deal.II/dofs/dof_accessor.templates.h @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 1999 - 2013 by the deal.II authors +// Copyright (C) 1999 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -77,7 +77,8 @@ template template inline DoFAccessor::DoFAccessor (const DoFAccessor &other) - : BaseClass(other), dof_handler(const_cast(other.dof_handler)) + : BaseClass(other), + dof_handler(0) { Assert (false, ExcInvalidObject()); } @@ -88,7 +89,8 @@ template template inline DoFAccessor::DoFAccessor (const DoFAccessor &other) - : BaseClass(other), dof_handler(const_cast(other.dof_handler)) + : BaseClass(other), + dof_handler(const_cast(other.dof_handler)) { }