QmlJSTools: Modernize

modernize-*

Change-Id: Ifc270455ab7500d18798ac0130744662ad3303fb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2018-11-24 10:22:37 +01:00
parent cd9ab31093
commit 134bb1b8b6
17 changed files with 56 additions and 73 deletions

View File

@@ -44,10 +44,8 @@ namespace QmlJSTools {
class QMLJSTOOLS_EXPORT Range
{
public:
Range(): ast(nullptr) {}
public: // attributes
QmlJS::AST::Node *ast;
// attributes
QmlJS::AST::Node *ast = nullptr;
QTextCursor begin;
QTextCursor end;
};
@@ -55,8 +53,8 @@ public: // attributes
class QMLJSTOOLS_EXPORT SemanticInfo
{
public:
SemanticInfo() {}
SemanticInfo(QmlJS::ScopeChain *rootScopeChain);
SemanticInfo() = default;
explicit SemanticInfo(QmlJS::ScopeChain *rootScopeChain);
bool isValid() const;
int revision() const;