mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
wix::Manager::getBooksIDs() now returns diff files too.
This commit is contained in:
@ -353,9 +353,7 @@ namespace kiwix {
|
||||
std::vector<kiwix::Book>::iterator itr;
|
||||
|
||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||
if(itr->origID=="") {
|
||||
booksIds.push_back(itr->id);
|
||||
}
|
||||
}
|
||||
|
||||
return booksIds;
|
||||
@ -397,10 +395,8 @@ namespace kiwix {
|
||||
std::vector<kiwix::Book>::iterator itr;
|
||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||
if ( itr->id == id) {
|
||||
if(itr->origID=="") {
|
||||
book = *itr;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user