cppcheck complains
This commit is contained in:
@@ -67,7 +67,7 @@ class FontDecompressor {
|
|||||||
|
|
||||||
// Scratch buffer for compacting a single glyph after a getBitmap() miss.
|
// Scratch buffer for compacting a single glyph after a getBitmap() miss.
|
||||||
// Valid until the next getBitmap() call.
|
// Valid until the next getBitmap() call.
|
||||||
uint8_t _hotGlyphBuf[HOT_GLYPH_BUF_SIZE];
|
uint8_t _hotGlyphBuf[HOT_GLYPH_BUF_SIZE] = {};
|
||||||
|
|
||||||
void freePageBuffer();
|
void freePageBuffer();
|
||||||
uint16_t getGroupIndex(const EpdFontData* fontData, uint32_t glyphIndex);
|
uint16_t getGroupIndex(const EpdFontData* fontData, uint32_t glyphIndex);
|
||||||
|
|||||||
@@ -1119,7 +1119,7 @@ int EpubReaderActivity::getEffectiveReaderFontId() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool EpubReaderActivity::stepPageState(const bool isForwardTurn) {
|
bool EpubReaderActivity::stepPageState(const bool isForwardTurn) {
|
||||||
if (!epub || !section || section->pageCount <= 0) {
|
if (!epub || !section || section->pageCount == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1565,8 +1565,8 @@ void EpubReaderActivity::renderContents(std::unique_ptr<Page> page, const int or
|
|||||||
tEnd - t0);
|
tEnd - t0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto* cacheManager = renderer.getFontCacheManager()) {
|
if (const auto* cacheManager = renderer.getFontCacheManager()) {
|
||||||
if (auto* decompressor = cacheManager->getDecompressor()) {
|
if (const auto* decompressor = cacheManager->getDecompressor()) {
|
||||||
const auto& stats = decompressor->getStats();
|
const auto& stats = decompressor->getStats();
|
||||||
lastRenderStats.fontCacheHits = stats.cacheHits;
|
lastRenderStats.fontCacheHits = stats.cacheHits;
|
||||||
lastRenderStats.fontCacheMisses = stats.cacheMisses;
|
lastRenderStats.fontCacheMisses = stats.cacheMisses;
|
||||||
|
|||||||
Reference in New Issue
Block a user