]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an apparently forgotten return statement.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Dec 2003 17:33:25 +0000 (17:33 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Dec 2003 17:33:25 +0000 (17:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@8255 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector_memory.h

index 2248b7b4a311987146e08d8dea58edd9a3045cda..61604402a831dbc43bb12ae73746b2851c0e71b8 100644 (file)
@@ -291,9 +291,11 @@ GrowingVectorMemory<VECTOR>::memory_consumption () const
   unsigned int result = sizeof (*this);
   const typename std::vector<entry_type>::const_iterator
     end = pool.end();
-  for (typename std::vector<entry_type>::const_iterator i = pool.begin()
-                                                    ; i != end ; ++i)
+  for (typename std::vector<entry_type>::const_iterator
+         i = pool.begin(); i != end ; ++i)
     result += sizeof (*i) + i->second->memory_consumption();
+
+  return result;
 }
 
 #endif

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.