Additional adjustments for Poller
[libs/core.git] / source / io / unix / poll.cpp
index 0fb9d22e03919476e95d52e09ca5faf10088241f..7df113e539609238e56d64bfd90662c0449c9af4 100644 (file)
@@ -62,7 +62,7 @@ void Poller::rebuild_array()
                priv->pfd.clear();
                priv->pfd.reserve(objects.size());
 
-               for(vector<Slot>::const_iterator i=objects.begin(); i!=objects.end(); ++i)
+               for(vector<PolledObject>::const_iterator i=objects.begin(); i!=objects.end(); ++i)
                {
                        pollfd p;
                        p.fd = *i->object->get_event_handle();
@@ -91,7 +91,7 @@ void Poller::platform_poll(int timeout)
        for(unsigned i=0; (i<objects.size() && ret>0); ++i)
                if(priv->pfd[i].revents)
                {
-                       poll_result.push_back(Slot(objects[i].object, poll_event_from_sys(priv->pfd[i].revents)));
+                       poll_result.push_back(PolledObject(objects[i].object, poll_event_from_sys(priv->pfd[i].revents)));
                        --ret;
                }
 }