]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a faster variant of functions.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Mar 2010 00:39:08 +0000 (00:39 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Mar 2010 00:39:08 +0000 (00:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@20760 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/logstream.cc

index 304cb68910e18f1c9a9085a536938e1b87217cd2..76d930f8acd6bec51ed6033c90f5e4637eab3d72 100644 (file)
@@ -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<std::string> tmp;
-  while (tmp.size() > 0)
+  while (tmp.empty() == false)
     {
       mem += MemoryConsumption::memory_consumption (tmp.top());
       tmp.pop ();
-    };
+    }
 
   return mem;
 }

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.