aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/memoryusagemodel.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-11-24 12:14:44 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2018-12-02 14:27:29 +0000
commitd1df55d128cd544c9b4035cad4b71aa521e93201 (patch)
tree6294d1402dfa8c70c65aed0d1ab08baa9d374451 /src/plugins/qmlprofiler/memoryusagemodel.h
parent383f0b9fcc6f2e6faad002d01560a81df0ca1813 (diff)
QmlProfiler: Modernize
modernize-* Change-Id: Ibdf9c0ae91bf8a622facc7f323112b550f532f15 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.h')
-rw-r--r--src/plugins/qmlprofiler/memoryusagemodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.h b/src/plugins/qmlprofiler/memoryusagemodel.h
index f3abd351879..6eeff3d9ac5 100644
--- a/src/plugins/qmlprofiler/memoryusagemodel.h
+++ b/src/plugins/qmlprofiler/memoryusagemodel.h
@@ -73,11 +73,11 @@ public:
private:
struct RangeStackFrame {
- RangeStackFrame() : originTypeIndex(-1), startTime(-1) {}
+ RangeStackFrame() = default;
RangeStackFrame(int originTypeIndex, qint64 startTime) :
originTypeIndex(originTypeIndex), startTime(startTime) {}
- int originTypeIndex;
- qint64 startTime;
+ int originTypeIndex = -1;
+ qint64 startTime = -1;
};
enum EventContinuation {