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:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user