From d1c2ae71c25d648321bd9e7599a601b1f85a657f Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 28 Mar 2020 21:20:44 -1000 Subject: [PATCH] Ensure consistent override usage in TCachedToken --- Runtime/CToken.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/CToken.hpp b/Runtime/CToken.hpp index 18b37779c..1fec4bbd5 100644 --- a/Runtime/CToken.hpp +++ b/Runtime/CToken.hpp @@ -137,13 +137,13 @@ public: TCachedToken() = default; TCachedToken(const CToken& other) : TToken(other) {} TCachedToken(CToken&& other) : TToken(std::move(other)) {} - T* GetObj() { + T* GetObj() override { if (!m_obj) m_obj = TToken::GetObj(); return m_obj; } - const T* GetObj() const { return const_cast*>(this)->GetObj(); } - void Unlock() { + const T* GetObj() const override { return const_cast*>(this)->GetObj(); } + void Unlock() override { TToken::Unlock(); m_obj = nullptr; }