clang-format-fix

This commit is contained in:
Jérôme Launay 2025-12-18 00:31:40 +01:00
parent a29ff93f9c
commit 2614d1da28
2 changed files with 6 additions and 7 deletions

View File

@ -321,8 +321,7 @@ void EpubReaderActivity::renderScreen() {
return renderScreen(); return renderScreen();
} }
Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n", Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n", millis(), p->elementCount, p->footnoteCount);
millis(), p->elementCount, p->footnoteCount);
// Copy footnotes from page to currentPageFootnotes // Copy footnotes from page to currentPageFootnotes
currentPageFootnotes.clear(); currentPageFootnotes.clear();

View File

@ -7,11 +7,11 @@
#include "../Activity.h" #include "../Activity.h"
class FootnotesData { class FootnotesData {
private: private:
FootnoteEntry entries[16]; FootnoteEntry entries[16];
int count; int count;
public: public:
FootnotesData() : count(0) { FootnotesData() : count(0) {
for (int i = 0; i < 16; i++) { for (int i = 0; i < 16; i++) {
entries[i].number[0] = '\0'; entries[i].number[0] = '\0';
@ -53,7 +53,7 @@ class EpubReaderFootnotesActivity final : public Activity {
const std::function<void(const char*)> onSelectFootnote; const std::function<void(const char*)> onSelectFootnote;
int selectedIndex; int selectedIndex;
public: public:
EpubReaderFootnotesActivity(GfxRenderer& renderer, InputManager& inputManager, const FootnotesData& footnotes, EpubReaderFootnotesActivity(GfxRenderer& renderer, InputManager& inputManager, const FootnotesData& footnotes,
const std::function<void()>& onGoBack, const std::function<void()>& onGoBack,
const std::function<void(const char*)>& onSelectFootnote) const std::function<void(const char*)>& onSelectFootnote)
@ -67,6 +67,6 @@ public:
void onExit() override; void onExit() override;
void loop() override; void loop() override;
private: private:
void render(); void render();
}; };