mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
AK: Remove useless casts
This commit is contained in:
parent
3ff651323c
commit
f1566ed4c6
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ class WeakLink : public RefCounted<WeakLink<T>> {
|
|||
friend class Weakable<T>;
|
||||
|
||||
public:
|
||||
T* ptr() { return static_cast<T*>(m_ptr); }
|
||||
const T* ptr() const { return static_cast<const T*>(m_ptr); }
|
||||
T* ptr() { return m_ptr; }
|
||||
const T* ptr() const { return m_ptr; }
|
||||
|
||||
private:
|
||||
explicit WeakLink(T& weakable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue