From bcdd6d4ca080c83681519eaa0ffbe20cc6c9cf96 Mon Sep 17 00:00:00 2001 From: Nikita Baryshnikov Date: Wed, 25 Feb 2015 12:56:17 +0300 Subject: [PATCH] SearchResultWindowPrivate: initialize members in ctor and remove unused variable Change-Id: I89c042ed834e978a97623a0544b4a6d754d29bc3 Reviewed-by: Orgad Shaneh --- src/plugins/coreplugin/find/searchresultwindow.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/plugins/coreplugin/find/searchresultwindow.cpp b/src/plugins/coreplugin/find/searchresultwindow.cpp index db4dd1e4b75..006b39d037e 100644 --- a/src/plugins/coreplugin/find/searchresultwindow.cpp +++ b/src/plugins/coreplugin/find/searchresultwindow.cpp @@ -86,7 +86,6 @@ namespace Internal { int visibleSearchIndex() const; void setCurrentIndex(int index, bool focus); - FindPlugin *m_plugin; SearchResultWindow *q; QList m_searchResultWidgets; QToolButton *m_expandCollapseButton; @@ -109,9 +108,16 @@ namespace Internal { void popupRequested(bool focus); }; - SearchResultWindowPrivate::SearchResultWindowPrivate(SearchResultWindow *window) - : q(window), - m_tabWidth(8) + SearchResultWindowPrivate::SearchResultWindowPrivate(SearchResultWindow *window) : + q(window), + m_expandCollapseButton(0), + m_expandCollapseAction(0), + m_spacer(0), + m_historyLabel(0), + m_spacer2(0), + m_recentSearchesBox(0), + m_widget(0), + m_tabWidth(8) { }