aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-08-07 18:18:54 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-08-14 13:30:04 +0900
commit2afb3e26828a2f97e98537f86d3b747a28847ddd (patch)
tree97562dd70d90e3a1d1c25f844763f667d09d39b5
parent93ebaacdc59bebbe99c79b69f16bfe5408d30f23 (diff)
downloadprandom-2afb3e26828a2f97e98537f86d3b747a28847ddd.tar.gz
kconfig: qconf: remove toolBar from ConfigMainWindow members
This pointer is only used in the ConfigMainWindow constructor. Drop it from the private members. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
-rw-r--r--scripts/kconfig/qconf.cc2
-rw-r--r--scripts/kconfig/qconf.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index e14b2b97419902..f2f5875979fe3d 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1432,7 +1432,7 @@ ConfigMainWindow::ConfigMainWindow(void)
setTabOrder(configList, helpText);
configList->setFocus();
- toolBar = new QToolBar("Tools", this);
+ QToolBar *toolBar = new QToolBar("Tools", this);
addToolBar(toolBar);
backAction = new QAction(QPixmap(xpm_back), "Back", this);
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index 5eeab4a8bb436f..b806839986352b 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -326,7 +326,6 @@ protected:
ConfigView *configView;
ConfigList *configList;
ConfigInfoView *helpText;
- QToolBar *toolBar;
QAction *backAction;
QAction *singleViewAction;
QAction *splitViewAction;