]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/poll.cpp
Clean up after the timedelta.h/units.h merge
[libs/core.git] / source / io / poll.cpp
index 9697ebfc3aa2094225325ea0aebcadb75d19953d..a58090792fcb06cf9c4a2a9049159ac7324524a8 100644 (file)
@@ -5,7 +5,6 @@
 #endif
 #include <msp/core/systemerror.h>
 #include <msp/strings/format.h>
-#include <msp/time/units.h>
 #include "eventobject.h"
 #include "handle.h"
 #include "handle_private.h"
@@ -18,7 +17,7 @@ namespace {
 using namespace Msp;
 using namespace Msp::IO;
 
-inline int sys_poll_event(PollEvent event)
+inline short int sys_poll_event(PollEvent event)
 {
        int result = 0;
 
@@ -107,6 +106,11 @@ Poller::Poller():
        objs_changed(false)
 { }
 
+Poller::~Poller()
+{
+       delete priv;
+}
+
 void Poller::set_object(EventObject &obj, PollEvent ev)
 {
        // Verify that the object has an event handle