mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibCore: is<CObject>(object) should not default to true
Otherwise we'll lie about anything that doesn't implement is<T>() and think it's indeed a T.
This commit is contained in:
parent
583e9ad372
commit
6ab9dc4ff4
Notes:
sideshowbarker
2024-07-19 09:42:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6ab9dc4ff4b
1 changed files with 0 additions and 3 deletions
|
@ -151,9 +151,6 @@ private:
|
|||
template<typename T>
|
||||
inline bool is(const CObject&) { return false; }
|
||||
|
||||
template<>
|
||||
inline bool is<CObject>(const CObject&) { return true; }
|
||||
|
||||
template<typename T>
|
||||
inline T& to(CObject& object)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue