Non-throwing Book::getDefaultIllustration()

This commit is contained in:
Veloman Yunkan
2021-11-18 13:57:34 +04:00
parent c8da5eea2b
commit 8a6adddc16
2 changed files with 7 additions and 1 deletions

View File

@ -143,6 +143,10 @@ class Book
bool m_readOnly = false;
uint64_t m_size = 0;
std::vector<std::shared_ptr<Illustration>> m_illustrations;
// Used as the return value of getDefaultIllustration() when no default
// illustration is found in the book
static const Illustration missingDefaultIllustration;
};
}