summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-13 15:54:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-14 08:32:40 +0200
commit2a2602fd46c3eeee28b2c9af9f540f86d5579f11 (patch)
treee828507c431006a2bba3339021750944b146cb00 /sfx2
parentfcb945e37dc31c11bcc3195fcbe835a63bb5bf5f (diff)
loplugin:unusedfields
Change-Id: I0ec89b56b339f26bb236887c904e6b5d14ceecea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94136 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx5
-rw-r--r--sfx2/source/inc/templdgi.hxx1
2 files changed, 1 insertions, 5 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 4ed0673dbe5e..e10e45fca4be 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -347,9 +347,8 @@ IMPL_LINK(SfxCommonTemplateDialog_Impl, PopupTreeMenuHdl, const CommandEvent&, r
SfxTemplatePanelControl::SfxTemplatePanelControl(SfxBindings* pBindings, vcl::Window* pParentWindow)
: PanelLayout(pParentWindow, "TemplatePanel", "sfx/ui/templatepanel.ui", nullptr)
, pImpl(new SfxTemplateDialog_Impl(pBindings, this))
- , mpBindings(pBindings)
{
- OSL_ASSERT(mpBindings!=nullptr);
+ OSL_ASSERT(pBindings!=nullptr);
}
SfxTemplatePanelControl::~SfxTemplatePanelControl()
@@ -546,7 +545,6 @@ SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl(SfxBindings* pB, vcl:
, bHierarchical(false)
, m_bWantHierarchical(false)
, bBindingUpdate(true)
- , m_bNewHasMenu(false)
{
mxFmtLb->set_help_id(HID_TEMPLATE_FMT);
mxFilterLb->set_help_id(HID_TEMPLATE_FILTER);
@@ -2120,7 +2118,6 @@ void SfxTemplateDialog_Impl::ReplaceUpdateButtonByMenu()
m_xActionTbR->set_item_visible("update", false);
m_xActionTbR->set_item_visible("new", false);
m_xActionTbR->set_item_visible("newmenu", true);
- m_bNewHasMenu = true;
FillToolMenu();
}
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index 84c28cd8556d..05746df094fc 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -126,7 +126,6 @@ protected:
bool bHierarchical :1;
bool m_bWantHierarchical :1;
bool bBindingUpdate :1;
- bool m_bNewHasMenu : 1;
void FmtSelect(weld::TreeView* pTreeView, bool bIsCallback);