+ remove a few function attribute references

This commit is contained in:
kelson42 2012-07-25 16:29:49 +00:00
parent 6ae3c27195
commit 4d15525dca
8 changed files with 11 additions and 11 deletions

View File

@ -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);

View File

@ -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,

View File

@ -342,7 +342,7 @@ namespace kiwix {
/* ZIM & Index methods */ /* ZIM & Index methods */
void Indexer::setZimPath(const string path) { void Indexer::setZimPath(const string path) {
pthread_mutex_lock(&zimPathMutex); pthread_mutex_lock(&zimPathMutex);
this->zimPath = path; this->zimPath = path;
pthread_mutex_unlock(&zimPathMutex); pthread_mutex_unlock(&zimPathMutex);
} }
@ -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);

View File

@ -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,

View File

@ -39,9 +39,9 @@ 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);
if (this->zimFileHandler != NULL) { if (this->zimFileHandler != NULL) {

View File

@ -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();

View File

@ -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);
} }

View File

@ -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,