summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 01:55:02 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 02:03:39 +0100
commit6ab9dc4ff4bd1e5e35b350bf4e81bde2d6b2c615 (patch)
tree8c83c729c6a60be92649ff68a99dc28c47f9f670 /Libraries
parent583e9ad372388a88a82474dff0fcb1f30a153d21 (diff)
downloadserenity-6ab9dc4ff4bd1e5e35b350bf4e81bde2d6b2c615.zip
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.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibCore/CObject.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibCore/CObject.h b/Libraries/LibCore/CObject.h
index 2875bc719e..a98bfc9edc 100644
--- a/Libraries/LibCore/CObject.h
+++ b/Libraries/LibCore/CObject.h
@@ -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)
{