summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-26 19:48:49 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-26 19:59:21 (GMT)
commit49e92fe3288bbc7cab365d9db1b9c0b0bde84afa (patch)
tree9f41b690125dd24def8b5037406bb5894b2fdad8 /Swiften/EventLoop
parentcbe6eaf4be28a35a907a0d5c06406885437121ba (diff)
downloadswift-49e92fe3288bbc7cab365d9db1b9c0b0bde84afa.zip
swift-49e92fe3288bbc7cab365d9db1b9c0b0bde84afa.tar.bz2
Fix compliation problems with CLang.
Diffstat (limited to 'Swiften/EventLoop')
-rw-r--r--Swiften/EventLoop/Event.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/Swiften/EventLoop/Event.h b/Swiften/EventLoop/Event.h
index 9f9fc9b..209de33 100644
--- a/Swiften/EventLoop/Event.h
+++ b/Swiften/EventLoop/Event.h
@@ -12,17 +12,18 @@
#include "Swiften/EventLoop/EventOwner.h"
namespace Swift {
- struct Event {
- Event(boost::shared_ptr<EventOwner> owner, const boost::function<void()>& callback) :
- owner(owner), callback(callback) {
- }
+ class Event {
+ public:
+ Event(boost::shared_ptr<EventOwner> owner, const boost::function<void()>& callback) :
+ owner(owner), callback(callback) {
+ }
- bool operator==(const Event& o) const {
- return o.id == id;
- }
+ bool operator==(const Event& o) const {
+ return o.id == id;
+ }
- unsigned int id;
- boost::shared_ptr<EventOwner> owner;
- boost::function<void()> callback;
+ unsigned int id;
+ boost::shared_ptr<EventOwner> owner;
+ boost::function<void()> callback;
};
}