summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-13 17:56:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-13 17:56:18 +0200
commit8b04b9f4654bad5d1456576e68b25bd3510240d3 (patch)
tree7d5d777f45eab4fce27f42bc77fd1a1fdd51b305
parentc615943bda57eadfa73c14a7314938aabe0bd16f (diff)
Remove wrong, needless downcast
...from SaveInData (which has a virtual dtor) to MenuSaveInData, while the data could also be ContextMenuSaveInData (not derived from MenuSavaInData). Change-Id: I4928fa97ed7738516699f8e57f354ef0f334c4f1
-rw-r--r--cui/source/customize/cfg.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 24bcca662a08..5595e6bd7316 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -2502,10 +2502,7 @@ void SvxMenuConfigPage::dispose()
{
for ( sal_Int32 i = 0 ; i < m_pSaveInListBox->GetEntryCount(); ++i )
{
- MenuSaveInData* pData =
- static_cast<MenuSaveInData*>(m_pSaveInListBox->GetEntryData( i ));
-
- delete pData;
+ delete static_cast<SaveInData*>(m_pSaveInListBox->GetEntryData( i ));
}
m_pSaveInListBox->Clear();