QmlProfiler: Apply some code cosmetics

Change-Id: I772713aec3a6c25136174b39b853a9ef3ee42a0b
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-04-28 16:02:54 +02:00
parent 54b1106f4b
commit a53780924d
33 changed files with 91 additions and 106 deletions

View File

@@ -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 &notes = m_notes[noteIndex];
const QmlNote &note = 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