mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 01:01:40 -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
|
@ -1077,7 +1077,7 @@ void RsCollectionDialog::download()
|
|||
QTreeWidgetItemIterator itemIterator(ui._fileEntriesTW);
|
||||
QTreeWidgetItem *item;
|
||||
while ((item = *itemIterator) != NULL) {
|
||||
itemIterator++;
|
||||
++itemIterator;
|
||||
|
||||
if (item->checkState(COLUMN_FILE) == Qt::Checked) {
|
||||
std::cerr << item->data(COLUMN_HASH,ROLE_NAME).toString().toStdString()
|
||||
|
@ -1144,7 +1144,7 @@ void RsCollectionDialog::saveChild(QTreeWidgetItem *parentItem, ColFileInfo *par
|
|||
parentInfo->type = parentItem->data(COLUMN_HASH,ROLE_TYPE).toUInt();
|
||||
parentInfo->size = parentItem->data(COLUMN_SIZE,ROLE_SELSIZE).toULongLong();
|
||||
|
||||
for (int i=0; i<parentItem->childCount(); i++) {
|
||||
for (int i=0; i<parentItem->childCount(); ++i) {
|
||||
ColFileInfo child;
|
||||
saveChild(parentItem->child(i), &child);
|
||||
if (parentInfo->name != "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue