From 9f50a055b2874fb991ac1070821775179946c53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 9 Dec 2024 12:01:11 +0100 Subject: [PATCH] fix another typo --- src/util/borrowable_ptr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/borrowable_ptr.h b/src/util/borrowable_ptr.h index 174bd545b42..54dd463831f 100644 --- a/src/util/borrowable_ptr.h +++ b/src/util/borrowable_ptr.h @@ -137,7 +137,7 @@ class borrowable_ptr { } void reset() { - m_pSharedPtr.store(m_pNullSharedPtr, std::momory_order_aquire); + m_pSharedPtr.store(m_pNullSharedPtr, std::memory_order_aquire); m_sharedPtr.reset(); // Wait until all borrowed references are released. m_mutex.lock(); @@ -151,7 +151,7 @@ class borrowable_ptr { private: QMutex m_mutex; - std::atomic>* m_pSharedPtr; + std::atomic*> m_pSharedPtr; std::shared_ptr m_sharedPtr; ///< Non-owning shared pointer to the managed object. static std::shared_ptr m_pNullSharedPtr; ///< Default constructed shared pointer with nullptr. };