diff --git a/src/creatures/players/imbuements/imbuements.cpp b/src/creatures/players/imbuements/imbuements.cpp index ef7804c9451..0af0b21d642 100644 --- a/src/creatures/players/imbuements/imbuements.cpp +++ b/src/creatures/players/imbuements/imbuements.cpp @@ -425,7 +425,7 @@ ImbuementDecay &ImbuementDecay::getInstance() { return inject(); } -void ImbuementDecay::startImbuementDecay(const std::shared_ptr& item) { +void ImbuementDecay::startImbuementDecay(const std::shared_ptr &item) { if (!item) { g_logger().error("[{}] item is nullptr", __FUNCTION__); return; @@ -442,13 +442,13 @@ void ImbuementDecay::startImbuementDecay(const std::shared_ptr& item) { if (m_eventId == 0) { m_lastUpdateTime = OTSYS_TIME(); m_eventId = g_dispatcher().scheduleEvent( - 60000, [this] { checkImbuementDecay(); }, "ImbuementDecay::checkImbuementDecay" - ); + 60000, [this] { checkImbuementDecay(); }, "ImbuementDecay::checkImbuementDecay" + ); g_logger().trace("Scheduled imbuement decay check every 60 seconds."); } } -void ImbuementDecay::stopImbuementDecay(const std::shared_ptr& item) { +void ImbuementDecay::stopImbuementDecay(const std::shared_ptr &item) { if (!item) { g_logger().error("[{}] item is nullptr", __FUNCTION__); return; @@ -494,7 +494,7 @@ void ImbuementDecay::checkImbuementDecay() { std::vector> itemsToRemove; - for (const auto& item : m_itemsToDecay) { + for (const auto &item : m_itemsToDecay) { if (!item) { g_logger().error("[{}] item is nullptr", __FUNCTION__); itemsToRemove.push_back(item); @@ -567,7 +567,7 @@ void ImbuementDecay::checkImbuementDecay() { } // Remove items whose imbuements have expired - for (const auto& item : itemsToRemove) { + for (const auto &item : itemsToRemove) { m_itemsToDecay.erase(item); } diff --git a/src/creatures/players/imbuements/imbuements.hpp b/src/creatures/players/imbuements/imbuements.hpp index cbf1be3d2ef..4dcbd04b2c6 100644 --- a/src/creatures/players/imbuements/imbuements.hpp +++ b/src/creatures/players/imbuements/imbuements.hpp @@ -135,14 +135,14 @@ class ImbuementDecay { static ImbuementDecay &getInstance(); - void startImbuementDecay(const std::shared_ptr& item); - void stopImbuementDecay(const std::shared_ptr& item); + void startImbuementDecay(const std::shared_ptr &item); + void stopImbuementDecay(const std::shared_ptr &item); void checkImbuementDecay(); private: std::unordered_set> m_itemsToDecay; int64_t m_lastUpdateTime = 0; - uint32_t m_eventId{0}; + uint32_t m_eventId { 0 }; }; constexpr auto g_imbuementDecay = ImbuementDecay::getInstance;