mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Fix CppCheck in notifytxt.cc
/retroshare-nogui/src/notifytxt.cc:155: warning: Cppcheck(postfixOperator): Prefer prefix ++/-- operators for non- primitive types. /retroshare-nogui/src/notifytxt.cc:175: warning: Cppcheck(postfixOperator): Prefer prefix ++/-- operators for non- primitive types. /retroshare-nogui/src/notifytxt.cc:248: warning: Cppcheck(postfixOperator): Prefer prefix ++/-- operators for non- primitive types. /retroshare-nogui/src/notifytxt.cc:262: warning: Cppcheck(postfixOperator): Prefer prefix ++/-- operators for non- primitive types.
This commit is contained in:
parent
0b8d684195
commit
68b35f3b9a
@ -152,7 +152,7 @@ void NotifyTxt::displayNeighbours()
|
||||
rsPeers->getGPGAllList(neighs);
|
||||
|
||||
std::ostringstream out;
|
||||
for(it = neighs.begin(); it != neighs.end(); it++)
|
||||
for(it = neighs.begin(); it != neighs.end(); ++it)
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
rsPeers->getGPGDetails(*it, detail);
|
||||
@ -172,7 +172,7 @@ void NotifyTxt::displayFriends()
|
||||
rsPeers->getFriendList(ids);
|
||||
|
||||
std::ostringstream out;
|
||||
for(it = ids.begin(); it != ids.end(); it++)
|
||||
for(it = ids.begin(); it != ids.end(); ++it)
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
rsPeers->getPeerDetails(*it, detail);
|
||||
@ -245,7 +245,7 @@ void NotifyTxt::notifyTurtleSearchResult(uint32_t search_id,const std::list<Turt
|
||||
|
||||
/* add to existing entry */
|
||||
std::list<TurtleFileInfo>::const_iterator fit;
|
||||
for(fit = found_files.begin(); fit != found_files.end(); fit++)
|
||||
for(fit = found_files.begin(); fit != found_files.end(); ++fit)
|
||||
{
|
||||
it->second.push_back(*fit);
|
||||
}
|
||||
@ -259,7 +259,7 @@ void NotifyTxt::getSearchIds(std::list<uint32_t> &searchIds)
|
||||
RsStackMutex stack(mNotifyMtx); /****** LOCKED *****/
|
||||
|
||||
std::map<uint32_t, std::list<TurtleFileInfo> >::iterator it;
|
||||
for(it = mSearchResults.begin(); it != mSearchResults.end(); it++)
|
||||
for(it = mSearchResults.begin(); it != mSearchResults.end(); ++it)
|
||||
{
|
||||
searchIds.push_back(it->first);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user