summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/Object.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-15 00:44:02 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-15 00:58:52 +0100
commit3866e0d4d4026a58e2577f6651e8796182d16a0e (patch)
tree8357514b67616888a814fc155a049edbb85baf84 /Libraries/LibCore/Object.cpp
parent2a41bff32947f69facccd16278491d9853543e47 (diff)
downloadserenity-3866e0d4d4026a58e2577f6651e8796182d16a0e.zip
LibCore: Move LogStream::operator<< overloads into cpp files
Diffstat (limited to 'Libraries/LibCore/Object.cpp')
-rw-r--r--Libraries/LibCore/Object.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibCore/Object.cpp b/Libraries/LibCore/Object.cpp
index 87b1f7c5d3..b22c2df561 100644
--- a/Libraries/LibCore/Object.cpp
+++ b/Libraries/LibCore/Object.cpp
@@ -205,4 +205,9 @@ bool Object::is_visible_for_timer_purposes() const
return true;
}
+const LogStream& operator<<(const LogStream& stream, const Object& object)
+{
+ return stream << object.class_name() << '{' << &object << '}';
+}
+
}