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;
|
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…
Reference in New Issue
Block a user