aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlformat/commentastvisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlformat/commentastvisitor.h b/tools/qmlformat/commentastvisitor.h
index 1df907f8a3..369784a5ba 100644
--- a/tools/qmlformat/commentastvisitor.h
+++ b/tools/qmlformat/commentastvisitor.h
@@ -48,9 +48,9 @@ struct Comment
Back_Inline = Back << 1,
DefaultLocations = Front | Back_Inline,
AllLocations = Front | Back | Back_Inline
- } m_location;
+ } m_location = Front;
- Comment() {}
+ Comment() = default;
Comment(const QQmlJS::Engine *engine, Location location, QList<SourceLocation> srcLocations)
: m_location(location), m_srcLocations(srcLocations) {
for (const auto& srcLoc : srcLocations) {