summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-05 09:59:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-05 17:35:08 +0200
commit9e57e164844e67faaf2b0424181c2df29e871992 (patch)
tree7932e66cc45c786e0055bea6603f4284ebb856fb /cui
parent7fe756570fb4ab30f540d644fd5125a67c2d9ea9 (diff)
loplugin:unusedvariableplus
Change-Id: Id93086be1224b6f6bf0bdaa1d50b4f289099027e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133876 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/toolbarmodedlg.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/cui/source/dialogs/toolbarmodedlg.cxx b/cui/source/dialogs/toolbarmodedlg.cxx
index 5ca568adf576..f1dbdeb106cb 100644
--- a/cui/source/dialogs/toolbarmodedlg.cxx
+++ b/cui/source/dialogs/toolbarmodedlg.cxx
@@ -67,11 +67,9 @@ static OUString GetCurrentApp()
static OUString GetCurrentMode()
{
OUString sResult;
- if (SfxViewFrame* pViewFrame = SfxViewFrame::Current())
+ if (SfxViewFrame::Current())
{
- const auto xCurrentFrame = pViewFrame->GetFrame().GetFrameInterface();
const auto xContext = comphelper::getProcessComponentContext();
- const auto xModuleManager = css::frame::ModuleManager::create(xContext);
const utl::OConfigurationTreeRoot aAppNode(
xContext, "org.openoffice.Office.UI.ToolbarMode/Applications/" + GetCurrentApp(), true);
if (aAppNode.isValid())
@@ -189,11 +187,9 @@ IMPL_LINK(ToolbarmodeDialog, OnApplyClick, weld::Button&, rButton, void)
aBatch->commit();
OUString sCurrentApp = GetCurrentApp();
- if (SfxViewFrame* pViewFrame = SfxViewFrame::Current())
+ if (SfxViewFrame::Current())
{
- const auto xCurrentFrame = pViewFrame->GetFrame().GetFrameInterface();
const auto xContext = comphelper::getProcessComponentContext();
- const auto xModuleManager = css::frame::ModuleManager::create(xContext);
const utl::OConfigurationTreeRoot aAppNode(
xContext, "org.openoffice.Office.UI.ToolbarMode/Applications/", true);
if (sCurrentApp != "Writer")