From: kanschat Date: Wed, 12 Sep 2012 12:44:34 +0000 (+0000) Subject: only base class is required for initialization X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415fe847ba5680947ebba0c8759750f128e43b30;p=dealii-svn.git only base class is required for initialization git-svn-id: https://svn.dealii.org/trunk@26311 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/tria_accessor.h b/deal.II/include/deal.II/grid/tria_accessor.h index b12710e3f5..047481289e 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.h +++ b/deal.II/include/deal.II/grid/tria_accessor.h @@ -2171,7 +2171,7 @@ class CellAccessor : public TriaAccessor /** * Copy constructor. */ - CellAccessor (const CellAccessor &cell_accessor); + CellAccessor (const TriaAccessor &cell_accessor); /** * Conversion constructor. This diff --git a/deal.II/include/deal.II/grid/tria_accessor.templates.h b/deal.II/include/deal.II/grid/tria_accessor.templates.h index fd90e894a4..99f5a30f5d 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.templates.h +++ b/deal.II/include/deal.II/grid/tria_accessor.templates.h @@ -2418,8 +2418,7 @@ CellAccessor (const Triangulation *parent, template inline -CellAccessor:: -CellAccessor (const CellAccessor &cell_accessor) + CellAccessor::CellAccessor (const TriaAccessor& cell_accessor) : TriaAccessor (static_cast&>(cell_accessor)) {}