QmlJSEditor: Modernize

modernize-*

Change-Id: I4dceb82c3904069a0d9848b2af61122d9282cb36
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2018-11-24 02:45:30 +01:00
parent 00ec6dfb5d
commit 5242f58173
36 changed files with 298 additions and 333 deletions

View File

@@ -43,11 +43,8 @@ class ExpressionUnderCursor
Scanner scanner;
public:
ExpressionUnderCursor()
: start(0), end(0)
{}
int start, end;
int start = 0;
int end = 0;
int startState(const QTextBlock &block) const
{
@@ -117,12 +114,12 @@ using namespace QmlJSEditor;
using namespace QmlJSEditor::Internal;
QmlExpressionUnderCursor::QmlExpressionUnderCursor()
: _expressionNode(0), _expressionOffset(0), _expressionLength(0)
: _expressionNode(nullptr), _expressionOffset(0), _expressionLength(0)
{}
ExpressionNode *QmlExpressionUnderCursor::operator()(const QTextCursor &cursor)
{
_expressionNode = 0;
_expressionNode = nullptr;
_expressionOffset = -1;
_expressionLength = -1;