summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 08:56:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 12:27:46 +0200
commit3a98352f7c03be67f7ceddd7fab48f8ef8a30849 (patch)
treeb51b7a91c482899ed396f268ac9f994e376162c4 /vcl
parent82dc7a39364af0ccc7357f0dffe2a2cd04632f4e (diff)
loplugin:unnecessaryvirtual
Change-Id: I1fa8248efa16a718f273f20620281737b0da455d Reviewed-on: https://gerrit.libreoffice.org/72024 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/treelistbox.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx
index e2271167a24a..007036b1012b 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -918,11 +918,6 @@ void SvTreeListBox::ForbidEmptyText()
mpImpl->m_bIsEmptyTextAllowed = false;
}
-SvTreeListEntry* SvTreeListBox::CreateEntry() const
-{
- return new SvTreeListEntry;
-}
-
const void* SvTreeListBox::FirstSearchEntry( OUString& _rEntryText ) const
{
SvTreeListEntry* pEntry = GetCurEntry();
@@ -1587,7 +1582,7 @@ SvTreeListEntry* SvTreeListBox::InsertEntry(
aCurInsertedExpBmp = rDefExpBmp;
aCurInsertedColBmp = rDefColBmp;
- SvTreeListEntry* pEntry = CreateEntry();
+ SvTreeListEntry* pEntry = new SvTreeListEntry;
pEntry->SetUserData( pUser );
InitEntry( pEntry, rText, rDefColBmp, rDefExpBmp, eButtonKind );
pEntry->EnableChildrenOnDemand( bChildrenOnDemand );
@@ -1615,7 +1610,7 @@ SvTreeListEntry* SvTreeListBox::InsertEntry( const OUString& rText,
aCurInsertedExpBmp = aExpEntryBmp;
aCurInsertedColBmp = aCollEntryBmp;
- SvTreeListEntry* pEntry = CreateEntry();
+ SvTreeListEntry* pEntry = new SvTreeListEntry;
pEntry->SetUserData( pUser );
InitEntry( pEntry, rText, aCollEntryBmp, aExpEntryBmp, eButtonKind );
@@ -1801,7 +1796,7 @@ SvTreeListEntry* SvTreeListBox::CloneEntry( SvTreeListEntry* pSource )
SvLBoxButton* pButtonItem = static_cast<SvLBoxButton*>(pSource->GetFirstItem(SvLBoxItemType::Button));
if( pButtonItem )
eButtonKind = pButtonItem->GetKind();
- SvTreeListEntry* pClone = CreateEntry();
+ SvTreeListEntry* pClone = new SvTreeListEntry;
InitEntry( pClone, aStr, aCollEntryBmp, aExpEntryBmp, eButtonKind );
pClone->SvTreeListEntry::Clone( pSource );
pClone->EnableChildrenOnDemand( pSource->HasChildrenOnDemand() );