From 4a537cf77affc4f1f2e2e5be9ff0b1ff11724509 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Wed, 6 Apr 2022 16:42:24 +0200 Subject: Qt drop unused QtMenu::mpCloseButton Change-Id: I988cabf4c07d5efd298c53b696f6d114f4f594bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132637 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski --- vcl/qt5/QtMenu.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vcl/qt5') diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx index 71b81c22ba3e..50cb1d057431 100644 --- a/vcl/qt5/QtMenu.cxx +++ b/vcl/qt5/QtMenu.cxx @@ -40,7 +40,6 @@ QtMenu::QtMenu(bool bMenuBar) , mbMenuBar(bMenuBar) , mpQMenuBar(nullptr) , mpQMenu(nullptr) - , mpCloseButton(nullptr) { } @@ -430,8 +429,6 @@ void QtMenu::SetFrame(const SalFrame* pFrame) mpQMenuBar = new QMenuBar(); pMainWindow->setMenuBar(mpQMenuBar); - - mpCloseButton = nullptr; mpQMenu = nullptr; DoFullMenuUpdate(mpVCLMenu); @@ -665,7 +662,6 @@ void QtMenu::ShowCloseButton(bool bShow) pButton->setToolTip(toQString(VclResId(SV_HELPTEXT_CLOSEDOCUMENT))); mpQMenuBar->setCornerWidget(pButton, Qt::TopRightCorner); connect(pButton, &QPushButton::clicked, this, &QtMenu::slotCloseDocument); - mpCloseButton = pButton; } if (bShow) -- cgit