refactor: consolidate Epub blank strings, simplify BookInfo buildLayout
Replace 13 per-accessor static std::string blank locals with a single file-scope kBlank (~384 bytes DRAM saved). Add Epub::getMetadata() returning the full BookMetadata struct. Refactor buildLayout from 14 individual parameters to a single BookMetadata const ref + fileSize. Made-with: Cursor
This commit is contained in:
@@ -61,6 +61,7 @@ class Epub {
|
||||
const std::string& getContributor() const;
|
||||
const std::string& getIdentifier() const;
|
||||
const std::string& getRating() const;
|
||||
const BookMetadataCache::BookMetadata& getMetadata() const;
|
||||
std::string getCoverBmpPath(bool cropped = false) const;
|
||||
bool generateCoverBmp(bool cropped = false) const;
|
||||
std::string getThumbBmpPath() const;
|
||||
|
||||
Reference in New Issue
Block a user