mirror of https://github.com/kiwix/libkiwix.git
+ Add indexer destructor (to avoid compilation warning with "non-virtual destructor")
This commit is contained in:
parent
552d123b64
commit
71082cf581
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace kiwix {
|
||||||
this->indexer.set_stemmer(this->stemmer);
|
this->indexer.set_stemmer(this->stemmer);
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void XapianIndexer::indexingPrelude(const string indexPath) {
|
void XapianIndexer::indexingPrelude(const string indexPath) {
|
||||||
this->writableDatabase = Xapian::WritableDatabase(indexPath, Xapian::DB_CREATE_OR_OVERWRITE);
|
this->writableDatabase = Xapian::WritableDatabase(indexPath, Xapian::DB_CREATE_OR_OVERWRITE);
|
||||||
this->writableDatabase.begin_transaction(true);
|
this->writableDatabase.begin_transaction(true);
|
||||||
|
|
Loading…
Reference in New Issue