mirror of https://github.com/kiwix/libkiwix.git
+ remove a few function attribute references
This commit is contained in:
parent
6ae3c27195
commit
4d15525dca
|
@ -26,7 +26,7 @@ namespace kiwix {
|
||||||
CluceneIndexer::CluceneIndexer() {
|
CluceneIndexer::CluceneIndexer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CluceneIndexer::indexingPrelude(const string &indexPath) {
|
void CluceneIndexer::indexingPrelude(const string indexPath) {
|
||||||
this->dir = FSDirectory::getDirectory(indexPath.c_str(), true);
|
this->dir = FSDirectory::getDirectory(indexPath.c_str(), true);
|
||||||
this->writer = new IndexWriter(this->dir, &analyzer, true);
|
this->writer = new IndexWriter(this->dir, &analyzer, true);
|
||||||
this->writer->setUseCompoundFile(false);
|
this->writer->setUseCompoundFile(false);
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace kiwix {
|
||||||
CluceneIndexer();
|
CluceneIndexer();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void indexingPrelude(const string &indexPath);
|
void indexingPrelude(const string indexPath);
|
||||||
void index(const string &url,
|
void index(const string &url,
|
||||||
const string &title,
|
const string &title,
|
||||||
const string &unaccentedTitle,
|
const string &unaccentedTitle,
|
||||||
|
|
|
@ -394,7 +394,7 @@ namespace kiwix {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Manage */
|
/* Manage */
|
||||||
bool Indexer::start(const string &zimPath, const string &indexPath) {
|
bool Indexer::start(const string zimPath, const string indexPath) {
|
||||||
this->setProgression(0);
|
this->setProgression(0);
|
||||||
this->setZimPath(zimPath);
|
this->setZimPath(zimPath);
|
||||||
this->setIndexPath(indexPath);
|
this->setIndexPath(indexPath);
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace kiwix {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Indexer();
|
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();
|
||||||
unsigned int getProgression();
|
unsigned int getProgression();
|
||||||
|
@ -132,7 +132,7 @@ namespace kiwix {
|
||||||
string getIndexPath();
|
string getIndexPath();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void indexingPrelude(const string &indexPath) = 0;
|
virtual void indexingPrelude(const string indexPath) = 0;
|
||||||
virtual void index(const string &url,
|
virtual void index(const string &url,
|
||||||
const string &title,
|
const string &title,
|
||||||
const string &unaccentedTitle,
|
const string &unaccentedTitle,
|
||||||
|
|
|
@ -39,7 +39,7 @@ void unescapeUrl(string &url) {
|
||||||
namespace kiwix {
|
namespace kiwix {
|
||||||
|
|
||||||
/* Constructor */
|
/* Constructor */
|
||||||
Reader::Reader(const string &zimFilePath)
|
Reader::Reader(const string zimFilePath)
|
||||||
: zimFileHandler(NULL) {
|
: zimFileHandler(NULL) {
|
||||||
|
|
||||||
this->zimFileHandler = new zim::File(zimFilePath);
|
this->zimFileHandler = new zim::File(zimFilePath);
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace kiwix {
|
||||||
class Reader {
|
class Reader {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Reader(const string &zimFilePath);
|
Reader(const string zimFilePath);
|
||||||
~Reader();
|
~Reader();
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace kiwix {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ namespace kiwix {
|
||||||
XapianIndexer();
|
XapianIndexer();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void indexingPrelude(const string &indexPath);
|
void indexingPrelude(const string indexPath);
|
||||||
void index(const string &url,
|
void index(const string &url,
|
||||||
const string &title,
|
const string &title,
|
||||||
const string &unaccentedTitle,
|
const string &unaccentedTitle,
|
||||||
|
|
Loading…
Reference in New Issue