+ Add indexer destructor (to avoid compilation warning with "non-virtual destructor")

This commit is contained in:
kelson42 2014-04-02 16:38:15 +02:00
parent 552d123b64
commit 71082cf581
3 changed files with 7 additions and 1 deletions

View File

@ -54,6 +54,10 @@ namespace kiwix {
pthread_mutex_init(&verboseMutex, NULL); pthread_mutex_init(&verboseMutex, NULL);
} }
/* Destructor */
Indexer::~Indexer() {
}
/* Read the stopwords */ /* Read the stopwords */
void Indexer::readStopWords(const string languageCode) { void Indexer::readStopWords(const string languageCode) {
std::string stopWord; std::string stopWord;

View File

@ -62,6 +62,8 @@ namespace kiwix {
public: public:
Indexer(); Indexer();
virtual ~Indexer();
bool start(const string zimPath, const string indexPath); bool start(const string zimPath, const string indexPath);
bool stop(); bool stop();
bool isRunning(); bool isRunning();