From: Wolfgang Bangerth Date: Tue, 9 Mar 2010 00:39:08 +0000 (+0000) Subject: Use a faster variant of functions. X-Git-Tag: v8.0.0~6360 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834ba09b146f2d7f57fca58e5f386213b83d4b86;p=dealii.git Use a faster variant of functions. git-svn-id: https://svn.dealii.org/trunk@20760 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/logstream.cc b/deal.II/base/source/logstream.cc index 304cb68910..76d930f8ac 100644 --- a/deal.II/base/source/logstream.cc +++ b/deal.II/base/source/logstream.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -383,11 +383,11 @@ LogStream::memory_consumption () const // stack since we can't access // elements from further below std::stack tmp; - while (tmp.size() > 0) + while (tmp.empty() == false) { mem += MemoryConsumption::memory_consumption (tmp.top()); tmp.pop (); - }; + } return mem; }