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:
Phenom 2017-08-15 19:45:26 +02:00 committed by csoler
parent 0b8d684195
commit 68b35f3b9a

View File

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