From 834ba09b146f2d7f57fca58e5f386213b83d4b86 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 9 Mar 2010 00:39:08 +0000 Subject: [PATCH] Use a faster variant of functions. git-svn-id: https://svn.dealii.org/trunk@20760 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/logstream.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5