| 3 | #include "comic_db.h" |
| 4 | |
| 5 | ComicDB currentComicFromModel(ComicModel *model, bool &found) |
| 6 | { |
| 7 | const auto comics = model->getAllComics(); |
| 8 | |
| 9 | for (const auto &comic : comics) { |
| 10 | if (comic.info.read == false) { |
| 11 | found = true; |
| 12 | return comic; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | found = false; |
| 17 | return ComicDB(); |
| 18 | } |
no test coverage detected