diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-06 15:43:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-07 06:58:28 +0000 |
commit | 01a8b743f69b6718ccf5bbbda23734fa38020e19 (patch) | |
tree | 887196cce77fefbed2a23fc0a299ad773abf024b /sfx2 | |
parent | 0397906df28669e6a9db58b852c357b8caacb182 (diff) |
clang-tidy dead-store
Change-Id: I40574713beaf1799cbc177a679e3485b4dc4eb1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148349
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/templatedlglocalview.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/StyleList.cxx | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/sfx2/source/control/templatedlglocalview.cxx b/sfx2/source/control/templatedlglocalview.cxx index 704468681fb8..6aefe5d5acf2 100644 --- a/sfx2/source/control/templatedlglocalview.cxx +++ b/sfx2/source/control/templatedlglocalview.cxx @@ -266,7 +266,6 @@ void TemplateDlgLocalView::syncCursor() { if ((*it)->mbSelected) { - nIndex = -1; nIndex = ListView::get_index((*it)->mnId); if (nIndex >= 0) { diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx index e1ecd4a2108d..c34bdf1e2aa1 100644 --- a/sfx2/source/dialog/StyleList.cxx +++ b/sfx2/source/dialog/StyleList.cxx @@ -1079,8 +1079,6 @@ void StyleList::UpdateStyles(StyleFlags nFlags) if (!m_pStyleSheetPool) return; - pItem = GetFamilyItem(); - m_aUpdateStyles.Call(nFlags); SfxStyleSheetBase* pStyle = m_pStyleSheetPool->First(eFam, nFilter); |