From 035c68cc45ef14663e7147d2e04c5cd038bf92e9 Mon Sep 17 00:00:00 2001 From: rookie-J Date: Thu, 6 May 2021 20:23:36 +0800 Subject: [PATCH] Fix plugin iface compilation problem. --- libsearch/plugininterface/search-plugin-iface.h | 5 +++-- libsearch/pluginmanage/search-plugin-manager.cpp | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libsearch/plugininterface/search-plugin-iface.h b/libsearch/plugininterface/search-plugin-iface.h index 19806d7..d4ccdb9 100644 --- a/libsearch/plugininterface/search-plugin-iface.h +++ b/libsearch/plugininterface/search-plugin-iface.h @@ -23,11 +23,12 @@ public: }; virtual ~SearchPluginIface() {} virtual QString getPluginName() = 0; - virtual void KeywordSearch(QString keyword,QQueue *searchResult); - virtual void openAction(QString name, QString key); + virtual void KeywordSearch(QString keyword,QQueue *searchResult) = 0; + virtual void openAction(QString name, QString key) = 0; }; } + Q_DECLARE_INTERFACE(Zeeker::SearchPluginIface, SearchPluginIface_iid) #endif // SEARCHPLUGINIFACE_H diff --git a/libsearch/pluginmanage/search-plugin-manager.cpp b/libsearch/pluginmanage/search-plugin-manager.cpp index f81bbe0..8adbfdb 100644 --- a/libsearch/pluginmanage/search-plugin-manager.cpp +++ b/libsearch/pluginmanage/search-plugin-manager.cpp @@ -38,3 +38,8 @@ void SearchPluginManager::close() SearchPluginManager::SearchPluginManager(QObject *parent) { } + +SearchPluginManager::~SearchPluginManager() +{ + m_hash.clear(); +}