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:
thunder2 2010-10-11 15:52:12 +00:00
parent 1ce0c822ba
commit 76f51d05b3
2 changed files with 2 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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;
} }
} }