forked from qt-creator/qt-creator
DiffEditor: Simplify DiffSelection
Change-Id: I9de3774fafa9f257974a4231a83b64f375291d87 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -11,14 +11,9 @@ namespace Internal {
|
||||
class DiffSelection
|
||||
{
|
||||
public:
|
||||
DiffSelection() = default;
|
||||
// TODO: remove this constructors and make format the first field of this class
|
||||
DiffSelection(QTextCharFormat *f) : format(f) {}
|
||||
DiffSelection(int s, int e, QTextCharFormat *f) : start(s), end(e), format(f) {}
|
||||
|
||||
QTextCharFormat *format = nullptr;
|
||||
int start = -1;
|
||||
int end = -1;
|
||||
QTextCharFormat *format = nullptr;
|
||||
};
|
||||
|
||||
// block number, list of ranges
|
||||
|
||||
Reference in New Issue
Block a user