mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 17:17:21 -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
2 changed files with 2 additions and 6 deletions
|
@ -1039,9 +1039,7 @@ void p3ChatService::statusChange(const std::list<pqipeer> &plist)
|
||||||
|
|
||||||
changed = true;
|
changed = true;
|
||||||
|
|
||||||
std::list<RsChatMsgItem *>::iterator cit1 = cit;
|
cit = privateOutgoingList.erase(cit);
|
||||||
cit++;
|
|
||||||
privateOutgoingList.erase(cit1);
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -879,9 +879,7 @@ bool p3MsgService::removeMessageTagType(uint32_t tagId)
|
||||||
/* remove empty tag */
|
/* remove empty tag */
|
||||||
delete(tag);
|
delete(tag);
|
||||||
|
|
||||||
std::map<uint32_t, RsMsgTags*>::iterator mit2 = mit1;
|
mMsgTags.erase(mit1++);
|
||||||
mit1++;
|
|
||||||
mMsgTags.erase(mit2);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue