From cbf34359c0bcb4cf81d0f2aa7fa3ce63eae2a677 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Mon, 18 Aug 2025 20:49:54 +0200 Subject: [PATCH] Code correctness --- TactilityC/Include/tt_app.h | 2 +- TactilityCore/Include/Tactility/Lock.h | 2 +- TactilityCore/Include/Tactility/Mutex.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TactilityC/Include/tt_app.h b/TactilityC/Include/tt_app.h index 1e5dbbb0..884bd5df 100644 --- a/TactilityC/Include/tt_app.h +++ b/TactilityC/Include/tt_app.h @@ -35,7 +35,7 @@ void tt_app_stop(); /** * Start an app by id and bundle. * @param[in] appId the app manifest id -* @param[in] parameters the parameters to pass onto the starting app + * @param[in] parameters the parameters to pass onto the starting app */ void tt_app_start_with_bundle(const char* appId, BundleHandle parameters); diff --git a/TactilityCore/Include/Tactility/Lock.h b/TactilityCore/Include/Tactility/Lock.h index d4988996..fdba4680 100644 --- a/TactilityCore/Include/Tactility/Lock.h +++ b/TactilityCore/Include/Tactility/Lock.h @@ -66,7 +66,7 @@ public: explicit ScopedLock(const Lock& lockable) : lockable(lockable) {} - ~ScopedLock() final { + ~ScopedLock() override { lockable.unlock(); // We don't care whether it succeeded or not } diff --git a/TactilityCore/Include/Tactility/Mutex.h b/TactilityCore/Include/Tactility/Mutex.h index 03b204f9..cfdf32aa 100644 --- a/TactilityCore/Include/Tactility/Mutex.h +++ b/TactilityCore/Include/Tactility/Mutex.h @@ -43,18 +43,18 @@ public: using Lock::lock; explicit Mutex(Type type = Type::Normal); - ~Mutex() final = default; + ~Mutex() override = default; /** Attempt to lock the mutex. Blocks until timeout passes or lock is acquired. * @param[in] timeout * @return success result */ - bool lock(TickType_t timeout) const final; + bool lock(TickType_t timeout) const override; /** Attempt to unlock the mutex. * @return success result */ - bool unlock() const final; + bool unlock() const override; /** @return the owner of the thread */ ThreadId getOwner() const;