Skip to content

Commit

Permalink
Fix typo in downcast template specialization in WeakPtr
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=255578

Reviewed by Chris Dumez.

Fix the typo in the specialization I introduced. Verified that using the
new downcast on a WeakPtr builds fine.

* Source/WTF/wtf/WeakPtr.h:
(WTF::downcast):

Canonical link: https://commits.webkit.org/263058@main
  • Loading branch information
chirags27 committed Apr 18, 2023
1 parent 34a1f63 commit 0fb46c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WTF/wtf/WeakPtr.h
Expand Up @@ -341,7 +341,7 @@ inline bool is(const WeakPtr<ArgType, WeakPtrImpl>& source)
template<typename Target, typename Source, typename WeakPtrImpl>
inline Target* downcast(WeakPtr<Source, WeakPtrImpl>& source)
{
return downcase<Target>(source.get());
return downcast<Target>(source.get());
}

template<typename Target, typename Source, typename WeakPtrImpl>
Expand Down

0 comments on commit 0fb46c5

Please sign in to comment.