Fix Krazy warnings about QString::null/clear().

Change-Id: I11faa5af0c186a9126c4af6f86e56250030d6cd9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
Friedemann Kleint
2013-03-08 16:09:03 +01:00
parent 0d3b54f410
commit 9f7a1e3d65
8 changed files with 15 additions and 15 deletions

View File

@@ -294,8 +294,8 @@ QList<Diff> Differ::diffNonCharMode(const QString text1, const QString text2)
// Rediff here on char basis
newDiffList += preprocess1AndDiff(lastDelete, lastInsert);
lastDelete = QString();
lastInsert = QString();
lastDelete.clear();
lastInsert.clear();
}
newDiffList.append(diffItem);
}
@@ -406,8 +406,8 @@ QList<Diff> Differ::merge(const QList<Diff> &diffList)
newDiffList.append(Diff(Diff::Insert, lastInsert));
if (diff.text.count())
newDiffList.append(diff);
lastDelete = QString();
lastInsert = QString();
lastDelete.clear();
lastInsert.clear();
} else { // join with last equal diff
if (newDiffList.count()
&& newDiffList.last().command == Diff::Equal) {