1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:07:35 +00:00

AK: Remove useless casts

This commit is contained in:
Sergey Bugaev 2020-06-12 16:27:48 +03:00 committed by Andreas Kling
parent 3ff651323c
commit f1566ed4c6

View file

@ -44,8 +44,8 @@ class WeakLink : public RefCounted<WeakLink<T>> {
friend class Weakable<T>; friend class Weakable<T>;
public: public:
T* ptr() { return static_cast<T*>(m_ptr); } T* ptr() { return m_ptr; }
const T* ptr() const { return static_cast<const T*>(m_ptr); } const T* ptr() const { return m_ptr; }
private: private:
explicit WeakLink(T& weakable) explicit WeakLink(T& weakable)