mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
AK: Remove useless casts
This commit is contained in:
parent
3ff651323c
commit
f1566ed4c6
Notes:
sideshowbarker
2024-07-19 05:42:04 +09:00
Author: https://github.com/bugaevc
Commit: f1566ed4c6
Pull-request: https://github.com/SerenityOS/serenity/pull/2547
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