From 86a827da7c71305be81624d25220d125ef00137a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 20 Jun 2024 11:58:23 +0200 Subject: loplugin:unusedfields Change-Id: I4bc67811e228b4806db9f9b9bf9fb0de0eb36de2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169263 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/control/opendoccontrols.cxx | 7 +++---- dbaccess/source/ui/inc/opendoccontrols.hxx | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/control/opendoccontrols.cxx b/dbaccess/source/ui/control/opendoccontrols.cxx index bb2558afd435..0c8dfa901c5b 100644 --- a/dbaccess/source/ui/control/opendoccontrols.cxx +++ b/dbaccess/source/ui/control/opendoccontrols.cxx @@ -91,16 +91,15 @@ namespace dbaui // OpenButton OpenDocumentButton::OpenDocumentButton(std::unique_ptr xControl, const OUString& _rAsciiModuleName) - : m_sModule( _rAsciiModuleName ) - , m_xControl(std::move(xControl)) + : m_xControl(std::move(xControl)) { // our label should equal the UI text of the "Open" command - auto aProperties = vcl::CommandInfoProvider::GetCommandProperties(u".uno:Open"_ustr, m_sModule); + auto aProperties = vcl::CommandInfoProvider::GetCommandProperties(u".uno:Open"_ustr, _rAsciiModuleName); OUString sLabel(vcl::CommandInfoProvider::GetLabelForCommand(aProperties)); m_xControl->set_label(" " + sLabel.replaceAll("~", "")); // Place icon left of text and both centered in the button. - m_xControl->set_image(GetCommandIcon(u".uno:Open"_ustr, m_sModule)); + m_xControl->set_image(GetCommandIcon(u".uno:Open"_ustr, _rAsciiModuleName)); } // OpenDocumentListBox diff --git a/dbaccess/source/ui/inc/opendoccontrols.hxx b/dbaccess/source/ui/inc/opendoccontrols.hxx index d0bfe63e8214..d2cca5281111 100644 --- a/dbaccess/source/ui/inc/opendoccontrols.hxx +++ b/dbaccess/source/ui/inc/opendoccontrols.hxx @@ -34,8 +34,6 @@ namespace dbaui class OpenDocumentButton { private: - OUString m_sModule; - std::unique_ptr m_xControl; public: OpenDocumentButton(std::unique_ptr xControl, const OUString& _rAsciiModuleName); -- cgit