diff options
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertracefile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp index 3add12e7d9..5123902ef1 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp @@ -621,7 +621,7 @@ void QmlProfilerFileWriter::saveQtd(QIODevice *device) stream.writeAttribute(_("totalTime"), QString::number(m_measuredTime)); const QVector<QmlEventType> &eventTypes = m_model->eventTypes(); - for (int typeIndex = 0; typeIndex < eventTypes.size(); ++typeIndex) { + for (int typeIndex = 0, end = eventTypes.length(); typeIndex < end; ++typeIndex) { if (isCanceled()) return; |