diff --git a/src/plugins/coreplugin/find/searchresultwidget.cpp b/src/plugins/coreplugin/find/searchresultwidget.cpp index ad3f0b9678d..9eee8dee632 100644 --- a/src/plugins/coreplugin/find/searchresultwidget.cpp +++ b/src/plugins/coreplugin/find/searchresultwidget.cpp @@ -79,12 +79,7 @@ public: }; SearchResultWidget::SearchResultWidget(QWidget *parent) : - QWidget(parent), - m_count(0), - m_preserveCaseSupported(true), - m_isShowingReplaceUI(false), - m_searchAgainSupported(false), - m_replaceSupported(false) + QWidget(parent) { QVBoxLayout *layout = new QVBoxLayout(this); layout->setMargin(0); diff --git a/src/plugins/coreplugin/find/searchresultwidget.h b/src/plugins/coreplugin/find/searchresultwidget.h index 5c5e3374a6f..5309ed69e1e 100644 --- a/src/plugins/coreplugin/find/searchresultwidget.h +++ b/src/plugins/coreplugin/find/searchresultwidget.h @@ -119,28 +119,28 @@ private: QList checkedItems() const; void updateMatchesFoundLabel(); - SearchResultTreeView *m_searchResultTreeView; - int m_count; + SearchResultTreeView *m_searchResultTreeView = nullptr; + int m_count = 0; QString m_dontAskAgainGroup; - QFrame *m_messageWidget; + QFrame *m_messageWidget = nullptr; InfoBar m_infoBar; InfoBarDisplay m_infoBarDisplay; - QWidget *m_topReplaceWidget; - QLabel *m_replaceLabel; - QLineEdit *m_replaceTextEdit; - QToolButton *m_replaceButton; - QToolButton *m_searchAgainButton; - QCheckBox *m_preserveCaseCheck; + QWidget *m_topReplaceWidget = nullptr; + QLabel *m_replaceLabel = nullptr; + QLineEdit *m_replaceTextEdit = nullptr; + QToolButton *m_replaceButton = nullptr; + QToolButton *m_searchAgainButton = nullptr; + QCheckBox *m_preserveCaseCheck = nullptr; QCheckBox *m_renameFilesCheckBox = nullptr; - QWidget *m_descriptionContainer; - QLabel *m_label; - QLabel *m_searchTerm; - QToolButton *m_cancelButton; - QLabel *m_matchesFoundLabel; - bool m_preserveCaseSupported; - bool m_isShowingReplaceUI; - bool m_searchAgainSupported; - bool m_replaceSupported; + QWidget *m_descriptionContainer = nullptr; + QLabel *m_label = nullptr; + QLabel *m_searchTerm = nullptr; + QToolButton *m_cancelButton = nullptr; + QLabel *m_matchesFoundLabel = nullptr; + bool m_preserveCaseSupported = true; + bool m_isShowingReplaceUI = false; + bool m_searchAgainSupported = false; + bool m_replaceSupported = false; }; } // Internal