mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 22:04:26 -04:00
turned some std::list<PeerId> into std::set, as it automatically prevents duplicates
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8138 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f1309a8cbe
commit
c9d5c7b3cb
51 changed files with 269 additions and 266 deletions
|
@ -1125,7 +1125,7 @@ void MessagesDialog::insertMessages()
|
|||
|
||||
text.clear();
|
||||
|
||||
for(std::list<RsPeerId>::const_iterator pit = msgInfo.rspeerid_msgto.begin(); pit != msgInfo.rspeerid_msgto.end(); ++pit)
|
||||
for(std::set<RsPeerId>::const_iterator pit = msgInfo.rspeerid_msgto.begin(); pit != msgInfo.rspeerid_msgto.end(); ++pit)
|
||||
{
|
||||
if (!text.isEmpty())
|
||||
text += ", ";
|
||||
|
@ -1136,7 +1136,7 @@ void MessagesDialog::insertMessages()
|
|||
else
|
||||
text += QString::fromUtf8(peerName.c_str());
|
||||
}
|
||||
for(std::list<RsGxsId>::const_iterator pit = msgInfo.rsgxsid_msgto.begin(); pit != msgInfo.rsgxsid_msgto.end(); ++pit)
|
||||
for(std::set<RsGxsId>::const_iterator pit = msgInfo.rsgxsid_msgto.begin(); pit != msgInfo.rsgxsid_msgto.end(); ++pit)
|
||||
{
|
||||
if (!text.isEmpty())
|
||||
text += ", ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue