From b6a6e821687dc8c994b92f94852989a33e3c4d3d Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 24 Mar 2013 23:11:14 +0000 Subject: [PATCH] Make two constructor arguments references. git-svn-id: https://svn.dealii.org/trunk@29019 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/deal.II/grid/tria_boundary_lib.h | 18 +++++++----------- deal.II/source/grid/tria_boundary_lib.cc | 9 ++++----- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/deal.II/include/deal.II/grid/tria_boundary_lib.h b/deal.II/include/deal.II/grid/tria_boundary_lib.h index 5ac6fb6707..c89a796bc4 100644 --- a/deal.II/include/deal.II/grid/tria_boundary_lib.h +++ b/deal.II/include/deal.II/grid/tria_boundary_lib.h @@ -1,7 +1,7 @@ //--------------------------------------------------------------------------- // $Id$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2011, 2012 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2011, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -46,13 +46,9 @@ class CylinderBoundary : public StraightBoundary { public: /** - * Constructor. Per default - * circular tube along the x-axis - * (axis=0). Choose - * axis=1 or - * axis=2 for a tube - * along the y- or z-axis, - * respectively. + * Constructor. Using default values for the constructor arguments yields a + * circular tube along the x-axis (axis=0). Choose axis=1 + * or axis=2 for a tube along the y- or z-axis, respectively. */ CylinderBoundary (const double radius = 1.0, const unsigned int axis = 0); @@ -69,9 +65,9 @@ public: * the given point may be any * point on the axis. */ - CylinderBoundary (const double radius, - const Point direction, - const Point point_on_axis); + CylinderBoundary (const double radius, + const Point &direction, + const Point &point_on_axis); /** * Refer to the general documentation of diff --git a/deal.II/source/grid/tria_boundary_lib.cc b/deal.II/source/grid/tria_boundary_lib.cc index d67f7ceaef..0813b77c3e 100644 --- a/deal.II/source/grid/tria_boundary_lib.cc +++ b/deal.II/source/grid/tria_boundary_lib.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -36,9 +36,9 @@ CylinderBoundary::CylinderBoundary (const double radius, template -CylinderBoundary::CylinderBoundary (const double radius, - const Point direction, - const Point point_on_axis) +CylinderBoundary::CylinderBoundary (const double radius, + const Point &direction, + const Point &point_on_axis) : radius(radius), direction (direction / direction.norm()), @@ -1553,4 +1553,3 @@ get_normals_at_vertices (const Triangulation<2,3 >::face_iterator &face, #include "tria_boundary_lib.inst" DEAL_II_NAMESPACE_CLOSE - -- 2.39.5