forked from qt-creator/qt-creator
DiffEditor: Rely on compiler generated constructors
Change-Id: I16527f2f971fa110ceb0b35755a1f49663ccb460 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -159,7 +159,7 @@ static QList<Diff> cleanupOverlaps(const QList<Diff> &diffList)
|
||||
Diff thisDiff = diffList.at(i);
|
||||
Diff nextDiff = i < diffList.count() - 1
|
||||
? diffList.at(i + 1)
|
||||
: Diff(Diff::Equal, QString());
|
||||
: Diff(Diff::Equal);
|
||||
if (thisDiff.command == Diff::Delete
|
||||
&& nextDiff.command == Diff::Insert) {
|
||||
const int delInsOverlap = commonOverlap(thisDiff.text, nextDiff.text);
|
||||
@@ -926,12 +926,6 @@ void Differ::diffBetweenEqualities(const QList<Diff> &leftInput,
|
||||
|
||||
///////////////
|
||||
|
||||
|
||||
Diff::Diff() :
|
||||
command(Diff::Equal)
|
||||
{
|
||||
}
|
||||
|
||||
Diff::Diff(Command com, const QString &txt) :
|
||||
command(com),
|
||||
text(txt)
|
||||
|
||||
Reference in New Issue
Block a user