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:
Jarek Kobus
2022-09-27 17:55:54 +02:00
parent 3877ced865
commit f66320c413
4 changed files with 26 additions and 31 deletions

View File

@@ -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