wix::Manager::getBooksIDs() now returns diff files too.

This commit is contained in:
Kiran Mathew Koshy 2013-09-22 15:09:23 +05:30
parent 14a4394f6d
commit 1299c4c264
1 changed files with 0 additions and 4 deletions

View File

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