forked from openkylin/ukui-search
Remove the delete in the Destructor function because of the auto delete of the scrollArea(parent) in ukcc.
This commit is contained in:
parent
b7e8221922
commit
4cf431bd60
|
@ -19,15 +19,6 @@ Search::Search()
|
||||||
initBlockDirsList();
|
initBlockDirsList();
|
||||||
}
|
}
|
||||||
|
|
||||||
Search::~Search()
|
|
||||||
{
|
|
||||||
delete m_pluginWidget;
|
|
||||||
if (m_gsettings) {
|
|
||||||
delete m_gsettings;
|
|
||||||
m_gsettings = nullptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
QString Search::plugini18nName()
|
QString Search::plugini18nName()
|
||||||
{
|
{
|
||||||
return m_plugin_name;
|
return m_plugin_name;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Search : public QObject, CommonInterface
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Search();
|
explicit Search();
|
||||||
~Search();
|
virtual ~Search() = default;
|
||||||
|
|
||||||
QString plugini18nName() Q_DECL_OVERRIDE;
|
QString plugini18nName() Q_DECL_OVERRIDE;
|
||||||
int pluginTypes() Q_DECL_OVERRIDE;
|
int pluginTypes() Q_DECL_OVERRIDE;
|
||||||
|
|
Loading…
Reference in New Issue