From 2614d1da28662927a3de210e5f997acba240fbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Launay?= Date: Thu, 18 Dec 2025 00:31:40 +0100 Subject: [PATCH] clang-format-fix --- src/activities/reader/EpubReaderActivity.cpp | 5 ++--- src/activities/reader/EpubReaderFootnotesActivity.h | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/activities/reader/EpubReaderActivity.cpp b/src/activities/reader/EpubReaderActivity.cpp index a00429a..3b7d69e 100644 --- a/src/activities/reader/EpubReaderActivity.cpp +++ b/src/activities/reader/EpubReaderActivity.cpp @@ -52,7 +52,7 @@ void EpubReaderActivity::onEnter() { updateRequired = true; xTaskCreate(&EpubReaderActivity::taskTrampoline, "EpubReaderActivityTask", - 24576, // Stack size + 24576, // Stack size this, // Parameters 1, // Priority &displayTaskHandle // Task handle @@ -321,8 +321,7 @@ void EpubReaderActivity::renderScreen() { return renderScreen(); } - Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n", - millis(), p->elementCount, p->footnoteCount); + Serial.printf("[%lu] [ERS] Page loaded: %d elements, %d footnotes\n", millis(), p->elementCount, p->footnoteCount); // Copy footnotes from page to currentPageFootnotes currentPageFootnotes.clear(); diff --git a/src/activities/reader/EpubReaderFootnotesActivity.h b/src/activities/reader/EpubReaderFootnotesActivity.h index a771f69..695fc81 100644 --- a/src/activities/reader/EpubReaderFootnotesActivity.h +++ b/src/activities/reader/EpubReaderFootnotesActivity.h @@ -7,11 +7,11 @@ #include "../Activity.h" class FootnotesData { -private: + private: FootnoteEntry entries[16]; int count; -public: + public: FootnotesData() : count(0) { for (int i = 0; i < 16; i++) { entries[i].number[0] = '\0'; @@ -53,7 +53,7 @@ class EpubReaderFootnotesActivity final : public Activity { const std::function onSelectFootnote; int selectedIndex; -public: + public: EpubReaderFootnotesActivity(GfxRenderer& renderer, InputManager& inputManager, const FootnotesData& footnotes, const std::function& onGoBack, const std::function& onSelectFootnote) @@ -67,6 +67,6 @@ public: void onExit() override; void loop() override; -private: + private: void render(); }; \ No newline at end of file