1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-21 04:39:45 +00:00

Replace xtl::delete_ptr functor with lambdas

This commit is contained in:
2013-01-01 14:51:03 -08:00
parent a7d4d42b85
commit 4c7ce8665c
5 changed files with 16 additions and 31 deletions

View File

@ -83,7 +83,9 @@ void plSDLMgr::DeInit()
//
void plSDLMgr::IDeleteDescriptors(plSDL::DescriptorList* dl)
{
std::for_each( dl->begin(), dl->end(), xtl::delete_ptr() );
std::for_each( dl->begin(), dl->end(),
[](plStateDescriptor* sd) { delete sd; }
);
dl->clear();
}