mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 07:25:36 -04:00
Fix all warnings in UnitTest
This commit is contained in:
parent
e3240de8e0
commit
aa05d60894
25 changed files with 95 additions and 93 deletions
|
@ -1389,10 +1389,10 @@ void GxsForumThreadWidget::fillThreads(QList<QTreeWidgetItem *> &threadList, boo
|
|||
++index;
|
||||
}
|
||||
|
||||
// (csoler) QTreeWidget::findItems apparently does not always work so I need to make the search manually, which I do using a map for efficiency reasons.
|
||||
std::map<QString,QTreeWidgetItem*> oldThreadMap ;
|
||||
for(uint32_t i=0;i<ui->threadTreeWidget->topLevelItemCount();++i)
|
||||
oldThreadMap[ui->threadTreeWidget->topLevelItem(i)->data(COLUMN_THREAD_MSGID,Qt::DisplayRole).toString()] = ui->threadTreeWidget->topLevelItem(i) ;
|
||||
//(csoler) QTreeWidget::findItems apparently does not always work so I need to make the search manually, which I do using a map for efficiency reasons.
|
||||
std::map<QString,QTreeWidgetItem*> oldThreadMap;
|
||||
for(int i=0; i<ui->threadTreeWidget->topLevelItemCount(); ++i)
|
||||
oldThreadMap[ui->threadTreeWidget->topLevelItem(i)->data(COLUMN_THREAD_MSGID, Qt::DisplayRole).toString()] = ui->threadTreeWidget->topLevelItem(i);
|
||||
|
||||
// iterate all new threads
|
||||
for (QList<QTreeWidgetItem *>::iterator newThread = threadList.begin (); newThread != threadList.end (); ++newThread) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue