mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 09:20:13 +00:00
Remove not necessary check pointer
Test Plan: compile Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: #dolphin Differential Revision: https://phabricator.kde.org/D8565
This commit is contained in:
parent
64cfc43b97
commit
d1acb1d56e
|
@ -309,9 +309,7 @@ KItemModelBase* KItemListView::model() const
|
|||
|
||||
void KItemListView::setWidgetCreator(KItemListWidgetCreatorBase* widgetCreator)
|
||||
{
|
||||
if (m_widgetCreator) {
|
||||
delete m_widgetCreator;
|
||||
}
|
||||
delete m_widgetCreator;
|
||||
m_widgetCreator = widgetCreator;
|
||||
}
|
||||
|
||||
|
@ -325,9 +323,7 @@ KItemListWidgetCreatorBase* KItemListView::widgetCreator() const
|
|||
|
||||
void KItemListView::setGroupHeaderCreator(KItemListGroupHeaderCreatorBase* groupHeaderCreator)
|
||||
{
|
||||
if (m_groupHeaderCreator) {
|
||||
delete m_groupHeaderCreator;
|
||||
}
|
||||
delete m_groupHeaderCreator;
|
||||
m_groupHeaderCreator = groupHeaderCreator;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue