forked from qt-creator/qt-creator
QmlProfiler: Apply some code cosmetics
Change-Id: I772713aec3a6c25136174b39b853a9ef3ee42a0b Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "qmlprofilertracefile.h"
|
||||
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QIODevice>
|
||||
@@ -657,12 +656,12 @@ void QmlProfilerFileWriter::save(QIODevice *device)
|
||||
if (isCanceled())
|
||||
return;
|
||||
|
||||
const QmlNote ¬es = m_notes[noteIndex];
|
||||
const QmlNote ¬e = m_notes[noteIndex];
|
||||
stream.writeStartElement(_("note"));
|
||||
stream.writeAttribute(_("startTime"), QString::number(notes.startTime));
|
||||
stream.writeAttribute(_("duration"), QString::number(notes.duration));
|
||||
stream.writeAttribute(_("eventIndex"), QString::number(notes.typeIndex));
|
||||
stream.writeCharacters(notes.text);
|
||||
stream.writeAttribute(_("startTime"), QString::number(note.startTime));
|
||||
stream.writeAttribute(_("duration"), QString::number(note.duration));
|
||||
stream.writeAttribute(_("eventIndex"), QString::number(note.typeIndex));
|
||||
stream.writeCharacters(note.text);
|
||||
stream.writeEndElement(); // note
|
||||
incrementProgress();
|
||||
}
|
||||
@@ -692,6 +691,5 @@ bool QmlProfilerFileWriter::isCanceled() const
|
||||
return m_future && m_future->isCanceled();
|
||||
}
|
||||
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlProfiler
|
||||
|
||||
Reference in New Issue
Block a user