Remove the delete in the Destructor function because of the auto delete of the scrollArea(parent) in ukcc.

This commit is contained in:
baijunjie 2022-01-28 09:33:50 +08:00 committed by iaom
parent b7e8221922
commit 4cf431bd60
2 changed files with 1 additions and 10 deletions

View File

@ -19,15 +19,6 @@ Search::Search()
initBlockDirsList();
}
Search::~Search()
{
delete m_pluginWidget;
if (m_gsettings) {
delete m_gsettings;
m_gsettings = nullptr;
}
}
QString Search::plugini18nName()
{
return m_plugin_name;

View File

@ -43,7 +43,7 @@ class Search : public QObject, CommonInterface
public:
explicit Search();
~Search();
virtual ~Search() = default;
QString plugini18nName() Q_DECL_OVERRIDE;
int pluginTypes() Q_DECL_OVERRIDE;