Book's illustrations are now immutable

This commit is contained in:
Veloman Yunkan
2021-11-18 14:23:59 +04:00
parent 8a6adddc16
commit 9f42884507
2 changed files with 2 additions and 6 deletions

View File

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