summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/eventq.hh11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index b04b43702..09483f4e2 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -431,17 +431,12 @@ class EventManager
EventQueue *eventq;
public:
- EventManager(EventManager &em) : eventq(em.queue()) {}
- EventManager(EventManager *em) : eventq(em ? em->queue() : NULL) {}
+ EventManager(EventManager &em) : eventq(em.eventq) {}
+ EventManager(EventManager *em) : eventq(em ? em->eventq : NULL) {}
EventManager(EventQueue *eq) : eventq(eq) {}
EventQueue *
- queue() const
- {
- return eventq;
- }
-
- operator EventQueue *() const
+ eventQueue() const
{
return eventq;
}