From eb89a23556a16958d9931b93f57b626f20af0ddd Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 9 Oct 2008 04:58:23 -0700 Subject: eventq: Don't use inline friend function when a static function will do. Another good reason to avoid this is that swig will try to wrap the friend, but it won't try to wrap a private static function. --- src/sim/eventq.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim/eventq.hh') diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 967e558db..e0194a742 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -87,8 +87,8 @@ class Event : public Serializable, public FastAlloc Event *nextBin; Event *nextInBin; - friend Event *insertBefore(Event *event, Event *curr); - friend Event *removeItem(Event *event, Event *last); + static Event *insertBefore(Event *event, Event *curr); + static Event *removeItem(Event *event, Event *last); /// queue to which this event belongs (though it may or may not be /// scheduled on this queue yet) -- cgit v1.2.3