mirror of https://github.com/kiwix/libkiwix.git
zim::Article currentArticle better local declared
This commit is contained in:
parent
c22049ea8c
commit
cdd43db32d
|
@ -81,6 +81,8 @@ namespace kiwix {
|
||||||
while(this->currentArticleOffset < thresholdOffset &&
|
while(this->currentArticleOffset < thresholdOffset &&
|
||||||
this->currentArticleOffset < this->lastArticleOffset) {
|
this->currentArticleOffset < this->lastArticleOffset) {
|
||||||
|
|
||||||
|
zim::Article currentArticle;
|
||||||
|
|
||||||
/* Get next non redirect article */
|
/* Get next non redirect article */
|
||||||
do {
|
do {
|
||||||
currentArticle = this->zimFileHandler->getArticle(this->currentArticleOffset);
|
currentArticle = this->zimFileHandler->getArticle(this->currentArticleOffset);
|
||||||
|
|
|
@ -39,7 +39,6 @@ namespace kiwix {
|
||||||
zim::size_type firstArticleOffset;
|
zim::size_type firstArticleOffset;
|
||||||
zim::size_type lastArticleOffset;
|
zim::size_type lastArticleOffset;
|
||||||
zim::size_type currentArticleOffset;
|
zim::size_type currentArticleOffset;
|
||||||
zim::Article currentArticle;
|
|
||||||
|
|
||||||
Xapian::WritableDatabase *writableDatabase;
|
Xapian::WritableDatabase *writableDatabase;
|
||||||
Xapian::Stem stemmer;
|
Xapian::Stem stemmer;
|
||||||
|
|
Loading…
Reference in New Issue