DiffEditor: fix various warnings

Change-Id: I555aa30c8925ba8eeb314dd836f1544b93d7a66f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2018-05-03 14:48:28 +02:00
parent 45c42dcec8
commit 7d60710608
9 changed files with 23 additions and 23 deletions

View File

@@ -64,9 +64,8 @@ public:
Invalid
};
TextLineData() {}
TextLineData(const QString &txt) : textLineType(TextLine), text(txt) {}
TextLineData(const QString &txt) : text(txt), textLineType(TextLine) {}
TextLineData(TextLineType t) : textLineType(t) {}
TextLineType textLineType = Invalid;
QString text;
/*
* <start position, end position>
@@ -75,6 +74,7 @@ public:
* <-1, -1> the whole line is a continuation (from the previous line to the next line)
*/
QMap<int, int> changedPositions; // counting from the beginning of the line
TextLineType textLineType = Invalid;
};
class DIFFEDITOR_EXPORT RowData {
@@ -93,10 +93,10 @@ class DIFFEDITOR_EXPORT ChunkData {
public:
ChunkData() {}
QList<RowData> rows;
bool contextChunk = false;
QString contextInfo;
int leftStartingLineNumber = 0;
int rightStartingLineNumber = 0;
QString contextInfo;
bool contextChunk = false;
};
class DIFFEDITOR_EXPORT FileData {
@@ -146,7 +146,7 @@ public:
static QString makePatch(const QList<FileData> &fileDataList,
unsigned formatFlags = 0);
static QList<FileData> readPatch(const QString &patch,
bool *ok = 0,
bool *ok = nullptr,
QFutureInterfaceBase *jobController = nullptr);
};