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:
csoler 2014-10-21 22:33:02 +00:00
parent 491a655889
commit b593a918a0
99 changed files with 571 additions and 571 deletions

View file

@ -149,7 +149,7 @@ FileAssociationsPage::save (QString &/*errmsg*/)
// {
// settings.setValue( ati.key(), ati.value() );
// qDebug() << " - " << ati.key() << ati.value() << "\n" ;
// ati++;
// ++ati;
// }
//
// settings.endGroup();
@ -173,14 +173,14 @@ FileAssociationsPage::load()
int rowi = 0;
QStringList::const_iterator ki;
for(ki=keys.constBegin(); ki!=keys.constEnd(); ki++)
for(ki=keys.constBegin(); ki!=keys.constEnd(); ++ki)
{
QString val = (Settings->value(*ki, "")).toString();
addNewItemToTable( rowi, 0, *ki );
addNewItemToTable( rowi, 1, val );
rowi++;
++rowi;
}
if (keys.count()==0)
@ -237,7 +237,7 @@ FileAssociationsPage::addnew()
}
else
{
for(int rowi=0; rowi<table->rowCount(); rowi++)
for(int rowi=0; rowi<table->rowCount(); ++rowi)
{
titem = table->item( rowi, 0);
if (titem->data(QTableWidgetItem::Type).toString()==currType)