aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/api/changeset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/api/changeset.cpp')
-rw-r--r--src/lib/corelib/api/changeset.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/corelib/api/changeset.cpp b/src/lib/corelib/api/changeset.cpp
index f5d60df80..699270b39 100644
--- a/src/lib/corelib/api/changeset.cpp
+++ b/src/lib/corelib/api/changeset.cpp
@@ -44,12 +44,12 @@
namespace QbsQmlJS {
ChangeSet::ChangeSet()
- : m_string(0), m_cursor(0), m_error(false)
+ : m_string(nullptr), m_cursor(nullptr), m_error(false)
{
}
ChangeSet::ChangeSet(const QList<EditOp> &operations)
- : m_string(0), m_cursor(0), m_operationList(operations), m_error(false)
+ : m_string(nullptr), m_cursor(nullptr), m_operationList(operations), m_error(false)
{
}
@@ -130,8 +130,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;
}
@@ -345,14 +345,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)