From b1fca5b3244bbbe6a647fa258d0d4aa23f323e77 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 3 Aug 2007 16:46:31 +0000 Subject: [PATCH] Cover the remaining cases of unnecessary semicolons git-svn-id: https://svn.dealii.org/trunk@14898 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fail/abf_approximation_01.cc | 22 +++++++++++----------- tests/fail/hp-step-14.cc | 10 +++++----- tests/fail/hp-step-15.cc | 4 ++-- tests/fail/kelly_crash_01.cc | 2 +- tests/fail/rt_distorted_01.cc | 18 +++++++++--------- tests/fail/rt_distorted_02.cc | 18 +++++++++--------- tests/fail/vectors_boundary_rhs_hp_02.cc | 6 +++--- tests/fail/vectors_rhs_hp_02.cc | 6 +++--- tests/hp/matrices.cc | 6 +++--- tests/hp/matrices_hp.cc | 6 +++--- tests/hp/step-13.cc | 6 +++--- tests/hp/step-6.cc | 4 ++-- tests/hp/step-7.cc | 6 +++--- tests/hp/step-9.cc | 8 ++++---- tests/hp/vectors_boundary_rhs_01.cc | 6 +++--- tests/hp/vectors_boundary_rhs_02.cc | 6 +++--- tests/hp/vectors_boundary_rhs_03.cc | 6 +++--- tests/hp/vectors_boundary_rhs_hp_01.cc | 6 +++--- tests/hp/vectors_boundary_rhs_hp_03.cc | 6 +++--- tests/hp/vectors_rhs_01.cc | 6 +++--- tests/hp/vectors_rhs_02.cc | 6 +++--- tests/hp/vectors_rhs_03.cc | 6 +++--- tests/hp/vectors_rhs_hp_01.cc | 6 +++--- tests/hp/vectors_rhs_hp_03.cc | 6 +++--- 24 files changed, 91 insertions(+), 91 deletions(-) diff --git a/tests/fail/abf_approximation_01.cc b/tests/fail/abf_approximation_01.cc index 4ca6bbf4c6..0dfd312b8d 100644 --- a/tests/fail/abf_approximation_01.cc +++ b/tests/fail/abf_approximation_01.cc @@ -2,7 +2,7 @@ // abf_approximation_01.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 2003, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -73,9 +73,9 @@ class TestMap1 : public Function public: TestMap1 (const unsigned int n_components) : Function (n_components) - {}; + {} - virtual ~TestMap1 () {}; + virtual ~TestMap1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -129,9 +129,9 @@ class TestDef1 : public Function TestDef1 (const unsigned int n_components, const double ph) : Function (n_components), phi (ph) - {}; + {} - virtual ~TestDef1 () {}; + virtual ~TestDef1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -184,9 +184,9 @@ class TestDef2 : public Function TestDef2 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef2 () {}; + virtual ~TestDef2 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -236,9 +236,9 @@ class TestDef3 : public Function TestDef3 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef3 () {}; + virtual ~TestDef3 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -294,9 +294,9 @@ class TestPoly : public Function } polys.push_back (Polynomials::Polynomial (coeff)); } - }; + } - virtual ~TestPoly () {}; + virtual ~TestPoly () {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/fail/hp-step-14.cc b/tests/fail/hp-step-14.cc index b25a099529..4da6402666 100644 --- a/tests/fail/hp-step-14.cc +++ b/tests/fail/hp-step-14.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -881,7 +881,7 @@ namespace Data template struct SetUp : public SetUpBase { - SetUp () {}; + SetUp () {} virtual const Function & get_boundary_values () const; @@ -935,7 +935,7 @@ namespace Data class BoundaryValues : public Function { public: - BoundaryValues () : Function () {}; + BoundaryValues () : Function () {} virtual double value (const Point &p, const unsigned int component) const; @@ -945,7 +945,7 @@ namespace Data class RightHandSide : public Function { public: - RightHandSide () : Function () {}; + RightHandSide () : Function () {} virtual double value (const Point &p, const unsigned int component) const; @@ -1017,7 +1017,7 @@ namespace Data class RightHandSide : public ConstantFunction { public: - RightHandSide () : ConstantFunction (1.) {}; + RightHandSide () : ConstantFunction (1.) {} }; static diff --git a/tests/fail/hp-step-15.cc b/tests/fail/hp-step-15.cc index c7d4f7a0eb..420b6d1f53 100644 --- a/tests/fail/hp-step-15.cc +++ b/tests/fail/hp-step-15.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -70,7 +70,7 @@ double gradient_power (const Tensor<1,dim> &v, class InitializationValues : public Function<1> { public: - InitializationValues () : Function<1>() {}; + InitializationValues () : Function<1>() {} virtual double value (const Point<1> &p, const unsigned int component = 0) const; diff --git a/tests/fail/kelly_crash_01.cc b/tests/fail/kelly_crash_01.cc index 2fb639b993..372f7596c4 100644 --- a/tests/fail/kelly_crash_01.cc +++ b/tests/fail/kelly_crash_01.cc @@ -101,7 +101,7 @@ template class RightHandSide : public Function { public: - RightHandSide () : Function () {}; + RightHandSide () : Function () {} virtual double value (const Point &p, const unsigned int component) const; diff --git a/tests/fail/rt_distorted_01.cc b/tests/fail/rt_distorted_01.cc index a3c0901f95..dda7766df3 100644 --- a/tests/fail/rt_distorted_01.cc +++ b/tests/fail/rt_distorted_01.cc @@ -2,7 +2,7 @@ // rt_distorted_01.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 2003, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -67,9 +67,9 @@ class TestMap1 : public Function public: TestMap1 (const unsigned int n_components) : Function (n_components) - {}; + {} - virtual ~TestMap1 () {}; + virtual ~TestMap1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -113,9 +113,9 @@ class TestDef1 : public Function TestDef1 (const unsigned int n_components, const double ph) : Function (n_components), phi (ph) - {}; + {} - virtual ~TestDef1 () {}; + virtual ~TestDef1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -168,9 +168,9 @@ class TestDef2 : public Function TestDef2 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef2 () {}; + virtual ~TestDef2 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -220,9 +220,9 @@ class TestDef3 : public Function TestDef3 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef3 () {}; + virtual ~TestDef3 () {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/fail/rt_distorted_02.cc b/tests/fail/rt_distorted_02.cc index ec0a68b490..c3b6228d33 100644 --- a/tests/fail/rt_distorted_02.cc +++ b/tests/fail/rt_distorted_02.cc @@ -2,7 +2,7 @@ // rt_distorted_02.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 2003, 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -69,9 +69,9 @@ class TestMap1 : public Function public: TestMap1 (const unsigned int n_components) : Function (n_components) - {}; + {} - virtual ~TestMap1 () {}; + virtual ~TestMap1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -125,9 +125,9 @@ class TestDef1 : public Function TestDef1 (const unsigned int n_components, const double ph) : Function (n_components), phi (ph) - {}; + {} - virtual ~TestDef1 () {}; + virtual ~TestDef1 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -180,9 +180,9 @@ class TestDef2 : public Function TestDef2 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef2 () {}; + virtual ~TestDef2 () {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -232,9 +232,9 @@ class TestDef3 : public Function TestDef3 (const unsigned int n_components, const double sc) : Function (n_components), scale (sc) - {}; + {} - virtual ~TestDef3 () {}; + virtual ~TestDef3 () {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/fail/vectors_boundary_rhs_hp_02.cc b/tests/fail/vectors_boundary_rhs_hp_02.cc index 11711387fd..853eb5b741 100644 --- a/tests/fail/vectors_boundary_rhs_hp_02.cc +++ b/tests/fail/vectors_boundary_rhs_hp_02.cc @@ -45,18 +45,18 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(dim) {}; + MySquareFunction () : Function(dim) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(dim) {}; + MySquareFunction () : Function(dim) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/matrices_hp.cc b/tests/hp/matrices_hp.cc index 4976832d52..29e71dbf43 100644 --- a/tests/hp/matrices_hp.cc +++ b/tests/hp/matrices_hp.cc @@ -43,16 +43,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/step-13.cc b/tests/hp/step-13.cc index 337f6fedcb..952dea5b56 100644 --- a/tests/hp/step-13.cc +++ b/tests/hp/step-13.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -650,7 +650,7 @@ template class Solution : public Function { public: - Solution () : Function () {}; + Solution () : Function () {} virtual double value (const Point &p, const unsigned int component) const; @@ -675,7 +675,7 @@ template class RightHandSide : public Function { public: - RightHandSide () : Function () {}; + RightHandSide () : Function () {} virtual double value (const Point &p, const unsigned int component) const; diff --git a/tests/hp/step-6.cc b/tests/hp/step-6.cc index 03a38af605..25428ffa4b 100644 --- a/tests/hp/step-6.cc +++ b/tests/hp/step-6.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -95,7 +95,7 @@ template class Coefficient : public Function { public: - Coefficient () : Function() {}; + Coefficient () : Function() {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/hp/step-7.cc b/tests/hp/step-7.cc index ae17514638..2f7fa836a8 100644 --- a/tests/hp/step-7.cc +++ b/tests/hp/step-7.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -90,7 +90,7 @@ class Solution : public Function, protected SolutionBase { public: - Solution () : Function() {}; + Solution () : Function() {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -142,7 +142,7 @@ class RightHandSide : public Function, protected SolutionBase { public: - RightHandSide () : Function() {}; + RightHandSide () : Function() {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/hp/step-9.cc b/tests/hp/step-9.cc index f3cc16aae5..5f82be11c0 100644 --- a/tests/hp/step-9.cc +++ b/tests/hp/step-9.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -104,7 +104,7 @@ template class AdvectionField : public TensorFunction<1,dim> { public: - AdvectionField () : TensorFunction<1,dim> () {}; + AdvectionField () : TensorFunction<1,dim> () {} virtual Tensor<1,dim> value (const Point &p) const; @@ -152,7 +152,7 @@ template class RightHandSide : public Function { public: - RightHandSide () : Function() {}; + RightHandSide () : Function() {} virtual double value (const Point &p, const unsigned int component = 0) const; @@ -210,7 +210,7 @@ template class BoundaryValues : public Function { public: - BoundaryValues () : Function() {}; + BoundaryValues () : Function() {} virtual double value (const Point &p, const unsigned int component = 0) const; diff --git a/tests/hp/vectors_boundary_rhs_01.cc b/tests/hp/vectors_boundary_rhs_01.cc index ce6756883a..fb1fce9ed4 100644 --- a/tests/hp/vectors_boundary_rhs_01.cc +++ b/tests/hp/vectors_boundary_rhs_01.cc @@ -45,16 +45,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/vectors_boundary_rhs_02.cc b/tests/hp/vectors_boundary_rhs_02.cc index 39ccc7e787..e16713453e 100644 --- a/tests/hp/vectors_boundary_rhs_02.cc +++ b/tests/hp/vectors_boundary_rhs_02.cc @@ -45,18 +45,18 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(dim) {}; + MySquareFunction () : Function(dim) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } }; diff --git a/tests/hp/vectors_boundary_rhs_hp_01.cc b/tests/hp/vectors_boundary_rhs_hp_01.cc index 643d29d53c..3ad700e0c8 100644 --- a/tests/hp/vectors_boundary_rhs_hp_01.cc +++ b/tests/hp/vectors_boundary_rhs_hp_01.cc @@ -45,16 +45,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/vectors_boundary_rhs_hp_03.cc b/tests/hp/vectors_boundary_rhs_hp_03.cc index 4831ea70c4..42f534cd4e 100644 --- a/tests/hp/vectors_boundary_rhs_hp_03.cc +++ b/tests/hp/vectors_boundary_rhs_hp_03.cc @@ -45,15 +45,15 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } }; diff --git a/tests/hp/vectors_rhs_01.cc b/tests/hp/vectors_rhs_01.cc index ee959dd2c8..3c0666099a 100644 --- a/tests/hp/vectors_rhs_01.cc +++ b/tests/hp/vectors_rhs_01.cc @@ -45,16 +45,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/vectors_rhs_02.cc b/tests/hp/vectors_rhs_02.cc index e482f9c6ea..db487838e4 100644 --- a/tests/hp/vectors_rhs_02.cc +++ b/tests/hp/vectors_rhs_02.cc @@ -45,18 +45,18 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(dim) {}; + MySquareFunction () : Function(dim) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { for (unsigned int d=0; d class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } }; diff --git a/tests/hp/vectors_rhs_hp_01.cc b/tests/hp/vectors_rhs_hp_01.cc index 1b480191cf..3fc0d8257e 100644 --- a/tests/hp/vectors_rhs_hp_01.cc +++ b/tests/hp/vectors_rhs_hp_01.cc @@ -45,16 +45,16 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(2) {}; + MySquareFunction () : Function(2) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const { values(0) = value(p,0); - values(1) = value(p,1); }; + values(1) = value(p,1); } }; diff --git a/tests/hp/vectors_rhs_hp_03.cc b/tests/hp/vectors_rhs_hp_03.cc index 1f9104ccce..716b6bae6a 100644 --- a/tests/hp/vectors_rhs_hp_03.cc +++ b/tests/hp/vectors_rhs_hp_03.cc @@ -45,15 +45,15 @@ template class MySquareFunction : public Function { public: - MySquareFunction () : Function(1) {}; + MySquareFunction () : Function(1) {} virtual double value (const Point &p, const unsigned int component) const - { return (component+1)*p.square(); }; + { return (component+1)*p.square(); } virtual void vector_value (const Point &p, Vector &values) const - { values(0) = value(p,0); }; + { values(0) = value(p,0); } }; -- 2.39.5