From 68b35f3b9ad6e6abe709f151457b746652d9cfd3 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 15 Aug 2017 19:45:26 +0200 Subject: [PATCH] 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. --- retroshare-nogui/src/notifytxt.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/retroshare-nogui/src/notifytxt.cc b/retroshare-nogui/src/notifytxt.cc index 3c5651dc7..18212b17e 100644 --- a/retroshare-nogui/src/notifytxt.cc +++ b/retroshare-nogui/src/notifytxt.cc @@ -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::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 &searchIds) RsStackMutex stack(mNotifyMtx); /****** LOCKED *****/ std::map >::iterator it; - for(it = mSearchResults.begin(); it != mSearchResults.end(); it++) + for(it = mSearchResults.begin(); it != mSearchResults.end(); ++it) { searchIds.push_back(it->first); }