forked from qt-creator/qt-creator
Tracing: Replace QLinkedList
Task-number: QTCREATORBUG-24098 Change-Id: I45e2f5c310b7094e02bd1a5d31caef6c164c4c57 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
#include "timelinenotesrenderpass.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <QLinkedList>
|
||||
|
||||
#include <list>
|
||||
|
||||
namespace Timeline {
|
||||
|
||||
@@ -59,12 +60,12 @@ namespace Timeline {
|
||||
*/
|
||||
void TimelineModel::computeNesting()
|
||||
{
|
||||
QLinkedList<int> parents;
|
||||
std::list<int> parents;
|
||||
for (int range = 0; range != count(); ++range) {
|
||||
TimelineModelPrivate::Range ¤t = d->ranges[range];
|
||||
for (QLinkedList<int>::iterator parentIt = parents.begin();;) {
|
||||
for (std::list<int>::iterator parentIt = parents.begin();;) {
|
||||
if (parentIt == parents.end()) {
|
||||
parents.append(range);
|
||||
parents.push_back(range);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -95,7 +96,7 @@ void TimelineModel::computeNesting()
|
||||
// could not find out about the changes in the IDs for range starts then.
|
||||
|
||||
current.parent = *parentIt;
|
||||
parents.append(range);
|
||||
parents.push_back(range);
|
||||
break;
|
||||
} else {
|
||||
++parentIt;
|
||||
|
Reference in New Issue
Block a user