]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
include assignment operator in test
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Dec 2007 19:54:08 +0000 (19:54 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Dec 2007 19:54:08 +0000 (19:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@15614 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/quadrature_test.cc

index 6035bf98c67298f85003f6638ef188a1c8d6251c..b551dbf1de98069d0ef7d09b5a06b0252402186d 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 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
@@ -51,9 +51,10 @@ template <int dim>
 void
 check_cells (std::vector<Quadrature<dim>*>& quadratures)
 {
+  Quadrature<dim> quadrature;
   for (unsigned int n=0; n<quadratures.size(); ++n)
     {
-      Quadrature<dim>& quadrature = *quadratures[n];
+      quadrature = *quadratures[n];
       const std::vector<Point<dim> > &points=quadrature.get_points();
       const std::vector<double> &weights=quadrature.get_weights();
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.