From c3c84dc19ee2ffd4050402ee092769745b6697e2 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 1 Mar 2014 03:43:35 +0000 Subject: [PATCH] Fix one more warning about hiding a local variable. git-svn-id: https://svn.dealii.org/trunk@32591 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/data_out_base.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.5