DiffEditor: Use DiffSide enum inside RowData

Change-Id: I5511e443e2f76a1dab5cc78eec5faec04ee31bcc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-26 14:49:52 +02:00
parent cd8ff54b00
commit a1c4d563a1
6 changed files with 49 additions and 50 deletions

View File

@@ -64,11 +64,10 @@ class DIFFEDITOR_EXPORT RowData {
public:
RowData() = default;
RowData(const TextLineData &l)
: leftLine(l), rightLine(l), equal(true) {}
: line({l, l}), equal(true) {}
RowData(const TextLineData &l, const TextLineData &r)
: leftLine(l), rightLine(r) {}
TextLineData leftLine;
TextLineData rightLine;
: line({l, r}) {}
std::array<TextLineData, SideCount> line{};
bool equal = false;
};