mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
optim: changed postfixed ++ into prefix++ for non trivial operators, replaced test on std::list::size() by std::list::empty() (Patch from Phenom, modified)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7627 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
491a655889
commit
b593a918a0
99 changed files with 571 additions and 571 deletions
|
@ -169,7 +169,7 @@ bool TokenQueue::activeRequestExist(const uint32_t& userType) const
|
|||
{
|
||||
std::list<TokenRequest>::const_iterator lit = mRequests.begin();
|
||||
|
||||
for(; lit != mRequests.end(); lit++)
|
||||
for(; lit != mRequests.end(); ++lit)
|
||||
{
|
||||
const TokenRequest& req = *lit;
|
||||
|
||||
|
@ -186,7 +186,7 @@ void TokenQueue::activeRequestTokens(const uint32_t& userType, std::list<uint32_
|
|||
{
|
||||
std::list<TokenRequest>::const_iterator lit = mRequests.begin();
|
||||
|
||||
for(; lit != mRequests.end(); lit++)
|
||||
for(; lit != mRequests.end(); ++lit)
|
||||
{
|
||||
const TokenRequest& req = *lit;
|
||||
|
||||
|
@ -224,7 +224,7 @@ bool TokenQueue::cancelRequest(const uint32_t token)
|
|||
|
||||
std::list<TokenRequest>::iterator it;
|
||||
|
||||
for(it = mRequests.begin(); it != mRequests.end(); it++)
|
||||
for(it = mRequests.begin(); it != mRequests.end(); ++it)
|
||||
{
|
||||
if (it->mToken == token)
|
||||
{
|
||||
|
|
|
@ -215,7 +215,7 @@ QString misc::userFriendlyUnit(double count, unsigned int decimal, double factor
|
|||
QString output;
|
||||
|
||||
int i;
|
||||
for (i = 0; i < 5; i++) {
|
||||
for (i = 0; i < 5; ++i) {
|
||||
if (count < factor) {
|
||||
break;
|
||||
}
|
||||
|
@ -337,7 +337,7 @@ bool misc::getOpenFileNames(QWidget *parent, RshareSettings::enumLastDir type
|
|||
#ifdef WINDOWS_SYS
|
||||
// fix bug in Qt for Windows Vista and higher, convert path from native separators
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based))
|
||||
for (QStringList::iterator file = files.begin(); file != files.end(); file++) {
|
||||
for (QStringList::iterator file = files.begin(); file != files.end(); ++file) {
|
||||
(*file) = QDir::fromNativeSeparators(*file);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue