From: bangerth Date: Sat, 1 Mar 2014 03:43:35 +0000 (+0000) Subject: Fix one more warning about hiding a local variable. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c84dc19ee2ffd4050402ee092769745b6697e2;p=dealii-svn.git Fix one more warning about hiding a local variable. git-svn-id: https://svn.dealii.org/trunk@32591 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index bc33d4e57f..f4ce58050f 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -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. // @@ -3664,12 +3664,12 @@ namespace DataOutBase } // max. and min. heigth of solution - typename std::vector >::const_iterator patch=patches.begin(); - Assert(patch!=patches.end(), ExcInternalError()); - double hmin=patch->data(0,0); - double hmax=patch->data(0,0); + Assert(patches.size()>0, ExcInternalError()); + double hmin=patches[0].data(0,0); + double hmax=patches[0].data(0,0); - for (; patch != patches.end(); ++patch) + for (typename std::vector >::const_iterator patch=patches.begin(); + patch != patches.end(); ++patch) { const unsigned int n_subdivisions = patch->n_subdivisions;