Utils: Modernize

modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I8d44d9405011a1878353baf9325f7af90b89db02
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2018-07-19 16:39:41 +02:00
parent 1d894c0f7a
commit e38410b76c
58 changed files with 274 additions and 315 deletions

View File

@@ -116,8 +116,8 @@ QList<ChangeSet::EditOp> ChangeSet::operationList() const
void ChangeSet::clear()
{
m_string = 0;
m_cursor = 0;
m_string = nullptr;
m_cursor = nullptr;
m_operationList.clear();
m_error = false;
}
@@ -334,14 +334,14 @@ void ChangeSet::apply(QString *s)
{
m_string = s;
apply_helper();
m_string = 0;
m_string = nullptr;
}
void ChangeSet::apply(QTextCursor *textCursor)
{
m_cursor = textCursor;
apply_helper();
m_cursor = 0;
m_cursor = nullptr;
}
QString ChangeSet::textAt(int pos, int length)