aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/diffeditor/diffeditorcontroller.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2017-12-06 21:30:57 +0100
committerAndré Hartmann <aha_1980@gmx.de>2017-12-09 14:45:37 +0000
commitaae3056b336ae05de72f9a1f3e61eea2006484ba (patch)
tree9db3990eeb84a1829ee0bbc69915e0b44655188b /src/plugins/diffeditor/diffeditorcontroller.h
parent53a151074ad37d12e730fbd85ec0e0675d00f6d0 (diff)
DiffEditor: Modernize
* Use member init * Use nullptr * Use range-for * omit QLatin1{String|Char} where possible Change-Id: Ib231b747cdd9073b3d4fc6779b8e0afb2b404a31 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/diffeditor/diffeditorcontroller.h')
-rw-r--r--src/plugins/diffeditor/diffeditorcontroller.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/diffeditor/diffeditorcontroller.h b/src/plugins/diffeditor/diffeditorcontroller.h
index 11cd3695c6..b6c8fd77a6 100644
--- a/src/plugins/diffeditor/diffeditorcontroller.h
+++ b/src/plugins/diffeditor/diffeditorcontroller.h
@@ -85,9 +85,9 @@ private:
Internal::DiffEditorDocument *const m_document;
- bool m_isReloading;
- int m_diffFileIndex;
- int m_chunkIndex;
+ bool m_isReloading = false;
+ int m_diffFileIndex = -1;
+ int m_chunkIndex = -1;
friend class Internal::DiffEditorDocument;
};