aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/diffeditor/diffeditor.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/diffeditor.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/diffeditor.h')
-rw-r--r--src/plugins/diffeditor/diffeditor.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/diffeditor/diffeditor.h b/src/plugins/diffeditor/diffeditor.h
index 6da073439d..4522a786a3 100644
--- a/src/plugins/diffeditor/diffeditor.h
+++ b/src/plugins/diffeditor/diffeditor.h
@@ -93,14 +93,14 @@ private:
void setupView(IDiffView *view);
QSharedPointer<DiffEditorDocument> m_document;
- DescriptionEditorWidget *m_descriptionWidget;
- UnifiedView *m_unifiedView;
- SideBySideView *m_sideBySideView;
- QStackedWidget *m_stackedWidget;
+ DescriptionEditorWidget *m_descriptionWidget = nullptr;
+ UnifiedView *m_unifiedView = nullptr;
+ SideBySideView *m_sideBySideView = nullptr;
+ QStackedWidget *m_stackedWidget = nullptr;
QVector<IDiffView *> m_views;
- QToolBar *m_toolBar;
- QComboBox *m_entriesComboBox;
- QSpinBox *m_contextSpinBox;
+ QToolBar *m_toolBar = nullptr;
+ QComboBox *m_entriesComboBox = nullptr;
+ QSpinBox *m_contextSpinBox = nullptr;
QAction *m_contextSpinBoxAction = nullptr;
QAction *m_toggleSyncAction;
QAction *m_whitespaceButtonAction;
@@ -109,11 +109,11 @@ private:
QAction *m_contextLabelAction = nullptr;
QAction *m_viewSwitcherAction;
QPair<QString, QString> m_currentFileChunk;
- int m_currentViewIndex;
- int m_currentDiffFileIndex;
+ int m_currentViewIndex = -1;
+ int m_currentDiffFileIndex = -1;
Utils::Guard m_ignoreChanges;
- bool m_sync;
- bool m_showDescription;
+ bool m_sync = false;
+ bool m_showDescription = true;
};
} // namespace Internal