mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
incidental simplification
This commit is contained in:
@@ -132,12 +132,7 @@ namespace BlackMisc
|
||||
void CTextMessageList::toggleSenderRecipients()
|
||||
{
|
||||
if (this->isEmpty()) return;
|
||||
for (int i = 0; i < this->size(); i++)
|
||||
{
|
||||
CTextMessage tm = (*this)[i];
|
||||
tm.toggleSenderRecipient();
|
||||
(*this)[i] = tm;
|
||||
}
|
||||
std::for_each(this->begin(), this->end(), [](CTextMessage &tm) { tm.toggleSenderRecipient(); });
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user