1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +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

@ -210,7 +210,9 @@ void plNetClientMgr::Shutdown()
//
void plNetClientMgr::IClearPendingLoads()
{
std::for_each( fPendingLoads.begin(), fPendingLoads.end(), xtl::delete_ptr() );
std::for_each( fPendingLoads.begin(), fPendingLoads.end(),
[](PendingLoad *pl) { delete pl; }
);
fPendingLoads.clear();
}
@ -1557,7 +1559,9 @@ void plNetClientMgr::SendPendingPagingRoomMsgs()
void plNetClientMgr::ClearPendingPagingRoomMsgs()
{
std::for_each( fPendingPagingRoomMsgs.begin(), fPendingPagingRoomMsgs.end(), xtl::delete_ptr() );
std::for_each( fPendingPagingRoomMsgs.begin(), fPendingPagingRoomMsgs.end(),
[](plNetMsgPagingRoom *pr) { delete pr; }
);
fPendingPagingRoomMsgs.clear();
}