Skip to content
Snippets Groups Projects
Commit e484dfdb authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

list::erase --> list.pop_back

[[Imported from SVN: r2876]]
parent ed2320f5
Branches
Tags
No related merge requests found
......@@ -986,10 +986,10 @@ namespace Dune {
{
if(memList_.size() > 0)
{
while( indexList_.rbegin() != indexList_.rend())
while( memList_.rbegin() != memList_.rend())
{
MemObjectInterface * mobj = (* memList_.rbegin() );
indexList_.erase( indexList_.rbegin() );
memList_.pop_back();
// alloc new mem an copy old mem
dverb << "Removing '" << mobj->name() << "' from DofManager!\n";
......@@ -1002,7 +1002,7 @@ namespace Dune {
while ( indexList_.rbegin() != indexList_.rend())
{
IndexSetObjectInterface * iobj = (* indexList_.rbegin() );
indexList_.erase( indexList_.rbegin() );
indexList_.pop_back();
if(iobj) delete iobj;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment