summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
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/source/dialog/templdlg.cxx
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/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx5
1 files changed, 1 insertions, 4 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();
}