forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user