aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/parser/qmljsast_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/parser/qmljsast_p.h')
-rw-r--r--src/lib/corelib/parser/qmljsast_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/corelib/parser/qmljsast_p.h b/src/lib/corelib/parser/qmljsast_p.h
index 8c6f32140..dcee233da 100644
--- a/src/lib/corelib/parser/qmljsast_p.h
+++ b/src/lib/corelib/parser/qmljsast_p.h
@@ -221,7 +221,7 @@ public:
// NOTE: node destructors are never called,
// instead we block free the memory
// (see the NodePool class)
- virtual ~Node() {}
+ virtual ~Node() = default;
virtual ExpressionNode *expressionCast();
virtual BinaryExpression *binaryExpressionCast();
@@ -245,7 +245,7 @@ public:
class QML_PARSER_EXPORT ExpressionNode: public Node
{
public:
- ExpressionNode() {}
+ ExpressionNode() = default;
ExpressionNode *expressionCast() override;
};
@@ -253,7 +253,7 @@ public:
class QML_PARSER_EXPORT Statement: public Node
{
public:
- Statement() {}
+ Statement() = default;
Statement *statementCast() override;
};
@@ -2303,7 +2303,7 @@ public:
return imports->firstSourceLocation();
else if (members)
return members->firstSourceLocation();
- return SourceLocation();
+ return {};
}
SourceLocation lastSourceLocation() const override
@@ -2312,7 +2312,7 @@ public:
return members->lastSourceLocation();
else if (imports)
return imports->lastSourceLocation();
- return SourceLocation();
+ return {};
}
// attributes
@@ -2519,7 +2519,7 @@ public:
else if (const auto varStmt = cast<const VariableStatement *>(sourceElement))
return varStmt->firstSourceLocation();
- return SourceLocation();
+ return {};
}
SourceLocation lastSourceLocation() const override
@@ -2529,7 +2529,7 @@ public:
else if (const auto varStmt = cast<const VariableStatement *>(sourceElement))
return varStmt->lastSourceLocation();
- return SourceLocation();
+ return {};
}
void accept0(Visitor *visitor) override;