ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/MemoryUtils.hpp
(Generate patch)

Comparing branches/development/src/utils/MemoryUtils.hpp (file contents):
Revision 1850 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1875 by gezelter, Fri May 17 14:41:42 2013 UTC

# Line 57 | Line 57 | namespace OpenMD {
57  
58      template<typename ContainterType>
59      static void deletePointers(ContainterType& container) {
60 <      for (typename ContainterType::iterator i = container.begin(); i != container.end(); i++) {
60 >      for (typename ContainterType::iterator i = container.begin();
61 >           i != container.end(); ++i) {
62          delete *i;
63        }
64 <                
64 >      
65        container.clear();
66      }
67    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines