MCPcopy Create free account
hub / github.com/YACReader/yacreader / currentComicFromModel

Function currentComicFromModel

YACReaderLibrary/current_comic_view_helper.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "comic_db.h"
4
5ComicDB 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}

Callers 1

Calls 2

getAllComicsMethod · 0.80
ComicDBClass · 0.70

Tested by

no test coverage detected