mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -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
|
@ -197,7 +197,7 @@ bool ChatStyle::setStyleFromSettings(enumStyleType styleType)
|
|||
m_styleType = styleType;
|
||||
|
||||
// reset cache
|
||||
for (int i = 0; i < FORMATMSG_COUNT; i++) {
|
||||
for (int i = 0; i < FORMATMSG_COUNT; ++i) {
|
||||
m_style[i].clear();
|
||||
}
|
||||
|
||||
|
@ -489,7 +489,7 @@ static bool getStyleInfo(QString stylePath, QString stylePathRelative, ChatStyle
|
|||
QFileInfoList dirList = dir.entryInfoList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name);
|
||||
|
||||
// iterate style directories and get info
|
||||
for (QFileInfoList::iterator it = dirList.begin(); it != dirList.end(); it++) {
|
||||
for (QFileInfoList::iterator it = dirList.begin(); it != dirList.end(); ++it) {
|
||||
QDir styleDir = QDir(it->absoluteFilePath());
|
||||
if (styleDir.cd(stylePath) == false) {
|
||||
// no user styles available
|
||||
|
@ -530,7 +530,7 @@ static bool getStyleInfo(QString stylePath, QString stylePathRelative, ChatStyle
|
|||
QFileInfoList fileList = dir.entryInfoList(filters, QDir::Files, QDir::Name);
|
||||
|
||||
// iterate variants
|
||||
for (QFileInfoList::iterator file = fileList.begin(); file != fileList.end(); file++) {
|
||||
for (QFileInfoList::iterator file = fileList.begin(); file != fileList.end(); ++file) {
|
||||
#ifndef COLORED_NICKNAMES
|
||||
if (file->baseName().toLower() == "colored") {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue