aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/diffeditor/diffutils.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2018-05-03 14:48:28 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2018-05-03 13:03:31 +0000
commit7d6071060830d138e83423e977e2113673991692 (patch)
tree2692b681ad63332a67659ef91151210986dd1cfd /src/plugins/diffeditor/diffutils.h
parent45c42dcec839c7ac4ec4c11dec298089430aa9d5 (diff)
DiffEditor: fix various warnings
Change-Id: I555aa30c8925ba8eeb314dd836f1544b93d7a66f Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/diffeditor/diffutils.h')
-rw-r--r--src/plugins/diffeditor/diffutils.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/diffeditor/diffutils.h b/src/plugins/diffeditor/diffutils.h
index 1b45102128d..d057a38e2fe 100644
--- a/src/plugins/diffeditor/diffutils.h
+++ b/src/plugins/diffeditor/diffutils.h
@@ -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);
};