mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Corrected some erases of std::iterators.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3665 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1ce0c822ba
commit
76f51d05b3
@ -1039,9 +1039,7 @@ void p3ChatService::statusChange(const std::list<pqipeer> &plist)
|
||||
|
||||
changed = true;
|
||||
|
||||
std::list<RsChatMsgItem *>::iterator cit1 = cit;
|
||||
cit++;
|
||||
privateOutgoingList.erase(cit1);
|
||||
cit = privateOutgoingList.erase(cit);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
@ -879,9 +879,7 @@ bool p3MsgService::removeMessageTagType(uint32_t tagId)
|
||||
/* remove empty tag */
|
||||
delete(tag);
|
||||
|
||||
std::map<uint32_t, RsMsgTags*>::iterator mit2 = mit1;
|
||||
mit1++;
|
||||
mMsgTags.erase(mit2);
|
||||
mMsgTags.erase(mit1++);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user