From 5beacb825c2df1620462ba68df16eb61d15d7c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 27 Dec 2010 12:24:34 +0100 Subject: Fixed valgrind warnings & leaks. diff --git a/Swiften/EventLoop/Event.cpp b/Swiften/EventLoop/Event.cpp new file mode 100644 index 0000000..aa002d3 --- /dev/null +++ b/Swiften/EventLoop/Event.cpp @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include + +#include +#include + +std::ostream& operator<<(std::ostream& os, const Swift::Event& e) { + os << "Event(" << e.id << ","; + if (e.owner) { + os << typeid(*e.owner.get()).name(); + } + else { + os << "null"; + } + os << ")"; + return os; +} -- cgit v0.10.2-6-g49f6