QmlProfiler: Modernize

modernize-*

Change-Id: Ibdf9c0ae91bf8a622facc7f323112b550f532f15
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Alessandro Portale
2018-11-24 12:14:44 +01:00
parent 383f0b9fcc
commit d1df55d128
42 changed files with 112 additions and 131 deletions

View File

@@ -35,7 +35,7 @@ namespace QmlProfiler {
class QMLPROFILER_EXPORT QmlEventLocation
{
public:
QmlEventLocation() : m_line(-1),m_column(-1) {}
QmlEventLocation() = default;
QmlEventLocation(const QString &file, int lineNumber, int columnNumber) : m_filename(file),
m_line(lineNumber), m_column(columnNumber)
{}
@@ -60,8 +60,8 @@ private:
friend QDataStream &operator<<(QDataStream &stream, const QmlEventLocation &location);
QString m_filename;
int m_line;
int m_column;
int m_line = -1;
int m_column = -1;
};
inline bool operator==(const QmlEventLocation &location1, const QmlEventLocation &location2)