summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-20 10:13:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-20 11:28:46 +0200
commite367e59e37499d0efca381f0b41df52c7cfc2026 (patch)
tree5d723ef00ca4d480231571cedef3029640ad6aa3 /sd
parent02c9c9adf65883ecaeef0e86a4b0b70ee3d5cf52 (diff)
loplugin:unusedfields
Change-Id: Ie27afe4c2438c44baece4b926572584c6695dc39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120774 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/custsdlg.cxx11
-rw-r--r--sd/source/ui/inc/custsdlg.hxx1
2 files changed, 0 insertions, 12 deletions
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index db2414a51fa2..f776a6a7e2ba 100644
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -36,7 +36,6 @@ SdCustomShowDlg::SdCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc
: GenericDialogController(pWindow, "modules/simpress/ui/customslideshows.ui", "CustomSlideShows")
, rDoc(rDrawDoc)
, pCustomShowList(nullptr)
- , bModified(false)
, m_xLbCustomShows(m_xBuilder->weld_tree_view("customshowlist"))
, m_xBtnNew(m_xBuilder->weld_button("new"))
, m_xBtnEdit(m_xBuilder->weld_button("edit"))
@@ -125,9 +124,6 @@ void SdCustomShowDlg::SelectHdl(void const *p)
m_xLbCustomShows->append_text( pCustomShowTmp->GetName() );
m_xLbCustomShows->select_text( pCustomShowTmp->GetName() );
}
-
- if (aDlg.IsModified())
- bModified = true;
}
}
// edit CustomShow
@@ -146,8 +142,6 @@ void SdCustomShowDlg::SelectHdl(void const *p)
m_xLbCustomShows->remove(nPos);
m_xLbCustomShows->insert_text(nPos, pCustomShow->GetName());
m_xLbCustomShows->select(nPos);
- if (aDlg.IsModified())
- bModified = true;
}
}
}
@@ -160,7 +154,6 @@ void SdCustomShowDlg::SelectHdl(void const *p)
pCustomShowList->erase( pCustomShowList->begin() + nPos );
m_xLbCustomShows->remove(nPos);
m_xLbCustomShows->select(nPos == 0 ? nPos : nPos - 1);
- bModified = true;
}
}
// copy CustomShow
@@ -219,8 +212,6 @@ void SdCustomShowDlg::SelectHdl(void const *p)
pCustomShowList->Last();
m_xLbCustomShows->append_text(pShowTmp->GetName());
m_xLbCustomShows->select_text(pShowTmp->GetName());
-
- bModified = true;
}
}
else if( p == m_xLbCustomShows.get() )
@@ -228,8 +219,6 @@ void SdCustomShowDlg::SelectHdl(void const *p)
int nPos = m_xLbCustomShows->get_selected_index();
if (nPos != -1)
pCustomShowList->Seek(nPos);
-
- bModified = true;
}
CheckState();
diff --git a/sd/source/ui/inc/custsdlg.hxx b/sd/source/ui/inc/custsdlg.hxx
index aa5f423396de..2de2eb30f509 100644
--- a/sd/source/ui/inc/custsdlg.hxx
+++ b/sd/source/ui/inc/custsdlg.hxx
@@ -30,7 +30,6 @@ class SdCustomShowDlg : public weld::GenericDialogController
private:
SdDrawDocument& rDoc;
SdCustomShowList* pCustomShowList;
- bool bModified;
std::unique_ptr<weld::TreeView> m_xLbCustomShows;
std::unique_ptr<weld::Button> m_xBtnNew;